- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- NCTS Declarations
- Customs Declarations
- Declaration Requests
- Logistics
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Retrieve a Custom Declaration
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
GET
/api/v1/customs_declarations/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Example:
195602
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.modaltrans.com/api/v1/customs_declarations/195602'
Responses
🟢200OK
application/json
Body
array of:
id
integer
required
reference
string
required
doc_date
string
required
status
string
required
doc_type
string
required
declaration_type
string
required
procedure_type
string
required
commercial_ref
string
required
ducr
string
required
mucr
string
required
csp_code
string
required
ducr_part
string
required
declarant_id
integer
required
declarant_eori
string
required
declarant_name
string
required
declarant_address
string
required
declarant_city_name
string
required
declarant_country_id
string
required
declarant_postcode
string
required
declarant_rep
string
required
export_country_id
string
required
consignor_id
integer
required
consignor_eori
string
required
consignor_name
string
required
consignor_address
string
required
consignor_city_name
string
required
consignor_country_id
string
required
consignor_postcode
string
required
import_country_id
string
required
consignee_id
integer
required
consignee_eori
string
required
consignee_name
string
required
consignee_address
string
required
consignee_city_name
string
required
consignee_country_id
string
required
consignee_postcode
string
required
invoice_amount
string
required
invoice_curr
string
required
origin_country_id
string
required
customs_office_id
integer
required
goods_location
string
required
goods_country_id
string
required
cap_indicator
string
required
border_transport_type
string
required
border_vehicle_code
string
required
border_vehicle_type
string
required
border_vehicle_coun
string
required
inland_transport_type
string
required
inland_vehicle_code
string
required
inland_vehicle_coun
string
required
itinerary_countries
string
required
container_no
string
required
seal_no
string
required
gvms_interested
boolean
required
freight_amount
string
required
freight_curr
string
required
payment_method
string
required
interna_remarks
string
required
carrier_id
integer
required
carrier_eori
string
required
carrier_name
string
required
carrier_address
string
required
carrier_city_name
string
required
carrier_country_id
string
required
carrier_postcode
string
required
goods_count
integer
required
total_packages
integer
required
total_weight
number
required
lrn
string
required
mrn
string
required
mrn_date
string
required
guid
string
required
loading_id
integer
required
tax_calc_status
string
required
patron_id
integer
required
user_id
integer
required
source_type
string
required
approved_at
string
required
approver_id
integer
required
access_token
string
required
declaration_version
integer
required
error_msg
string
required
notes
string
required
trashed
boolean
required
created_at
string
required
updated_at
string
required
entry_number
string
required
entry_date
string
required
epu_code
string
required
person_in_charge
string
required
stats_amount
string
required
stats_curr
string
required
ancillary_charges
string
required
warehouse_id
integer
required
registered_eori
integer
required
contractor_eori
integer
required
inland_arrival_place
string
required
inland_departure_place
string
required
premises_code
string
required
premises_name
string
required
first_dan_type
string
required
first_dan_no
string
required
second_dan_type
string
required
second_dan_no
string
required
insurance_amount
string
required
other_amounts
string
required
shed_code
string
required
airport_id
integer
required
apportment_indicator
string
required
premises_id
integer
required
ics_code
string
required
soe_code
string
required
roe_code
string
required
total_customs_amount
string
required
total_payable_duty
string
required
deferred_revenue
string
required
immediate_revenue
string
required
curr_rate
string
required
amendment_reason
string
required
supervising_office_id
integer
required
total_gross_weight
string
required
total_net_weight
string
required
multiple_consignor
boolean
required
multiple_consignee
boolean
required
airfreight_cost
string
required
insurance_curr
string
required
insurance_curr_rate
number
required
other_amounts_curr
string
required
other_amounts_curr_rate
number
required
vat_adjustment
string
required
vat_adjustment_curr
string
required
discount_amount
string
required
discount_curr
string
required
discount_rate
string
required
total_payable_vat
string
required
total_vat_value
string
required
sum_of_revenue
string
required
local_invoice_amount
string
required
badge_id
integer
required
cargo_report_id
integer
required
query_msg
string
required
freight_local_amount
number
required
freight_curr_rate
number
required
insurance_local_amount
number
required
insurance_local_curr_rate
number
required
other_local_amount
number
required
other_local_curr_rate
number
required
vat_adjustment_local_amount
number
required
vat_adjustment_curr_rate
number
required
fec_codes
string
required
ern
string
required
doc_mode
string
required
gvms_manifesto_id
integer
required
ducr_from
string
required
is_template
boolean
required
entry_time
string
required
warehouse_type
string
required
dti_code
string
required
tenant_id
integer
required
printable_dti_codes
string
required
bank_code
string
required
bank_ref_id
string
required
dti_transaction_amount
number
required
service_code
string
required
incoterm
string
required
incoterm_location
string
required
trader_ref
string
required
arrival_transport_type
string
required
total_payable_other
string
required
s3files_count
integer
required
clearance_entry_date
string
required
clearance_entry_time
string
required
payment_ref
string
required
arrival_notification_date
string
required
search_key
string
required
additional_infos
string
required
consignment_id
integer
required
previous_mrn_no
string
required
previous_mrn_date
string
required
branch_id
integer
required
goods_arrival_date
string
required
is_dummy
boolean
required
owner_company_id
integer
required
exlude_consignor
boolean
required
exlude_consignee
boolean
required
departure_date
string
required
team_id
integer
required
customer_id
integer
required
financial_status
string
required
closed_date
string
required
debit_invoice_nos
string
required
credit_invoice_nos
string
required
notification_emails
string
required
Example
[
{
"id": 0,
"reference": "string",
"doc_date": "string",
"status": "string",
"doc_type": "string",
"declaration_type": "string",
"procedure_type": "string",
"commercial_ref": "string",
"ducr": "string",
"mucr": "string",
"csp_code": "string",
"ducr_part": "string",
"declarant_id": 0,
"declarant_eori": "string",
"declarant_name": "string",
"declarant_address": "string",
"declarant_city_name": "string",
"declarant_country_id": "string",
"declarant_postcode": "string",
"declarant_rep": "string",
"export_country_id": "string",
"consignor_id": 0,
"consignor_eori": "string",
"consignor_name": "string",
"consignor_address": "string",
"consignor_city_name": "string",
"consignor_country_id": "string",
"consignor_postcode": "string",
"import_country_id": "string",
"consignee_id": 0,
"consignee_eori": "string",
"consignee_name": "string",
"consignee_address": "string",
"consignee_city_name": "string",
"consignee_country_id": "string",
"consignee_postcode": "string",
"invoice_amount": "string",
"invoice_curr": "string",
"origin_country_id": "string",
"customs_office_id": 0,
"goods_location": "string",
"goods_country_id": "string",
"cap_indicator": "string",
"border_transport_type": "string",
"border_vehicle_code": "string",
"border_vehicle_type": "string",
"border_vehicle_coun": "string",
"inland_transport_type": "string",
"inland_vehicle_code": "string",
"inland_vehicle_coun": "string",
"itinerary_countries": "string",
"container_no": "string",
"seal_no": "string",
"gvms_interested": true,
"freight_amount": "string",
"freight_curr": "string",
"payment_method": "string",
"interna_remarks": "string",
"carrier_id": 0,
"carrier_eori": "string",
"carrier_name": "string",
"carrier_address": "string",
"carrier_city_name": "string",
"carrier_country_id": "string",
"carrier_postcode": "string",
"goods_count": 0,
"total_packages": 0,
"total_weight": 0,
"lrn": "string",
"mrn": "string",
"mrn_date": "string",
"guid": "string",
"loading_id": 0,
"tax_calc_status": "string",
"patron_id": 0,
"user_id": 0,
"source_type": "string",
"approved_at": "string",
"approver_id": 0,
"access_token": "string",
"declaration_version": 0,
"error_msg": "string",
"notes": "string",
"trashed": true,
"created_at": "string",
"updated_at": "string",
"entry_number": "string",
"entry_date": "string",
"epu_code": "string",
"person_in_charge": "string",
"stats_amount": "string",
"stats_curr": "string",
"ancillary_charges": "string",
"warehouse_id": 0,
"registered_eori": 0,
"contractor_eori": 0,
"inland_arrival_place": "string",
"inland_departure_place": "string",
"premises_code": "string",
"premises_name": "string",
"first_dan_type": "string",
"first_dan_no": "string",
"second_dan_type": "string",
"second_dan_no": "string",
"insurance_amount": "string",
"other_amounts": "string",
"shed_code": "string",
"airport_id": 0,
"apportment_indicator": "string",
"premises_id": 0,
"ics_code": "string",
"soe_code": "string",
"roe_code": "string",
"total_customs_amount": "string",
"total_payable_duty": "string",
"deferred_revenue": "string",
"immediate_revenue": "string",
"curr_rate": "string",
"amendment_reason": "string",
"supervising_office_id": 0,
"total_gross_weight": "string",
"total_net_weight": "string",
"multiple_consignor": true,
"multiple_consignee": true,
"airfreight_cost": "string",
"insurance_curr": "string",
"insurance_curr_rate": 0,
"other_amounts_curr": "string",
"other_amounts_curr_rate": 0,
"vat_adjustment": "string",
"vat_adjustment_curr": "string",
"discount_amount": "string",
"discount_curr": "string",
"discount_rate": "string",
"total_payable_vat": "string",
"total_vat_value": "string",
"sum_of_revenue": "string",
"local_invoice_amount": "string",
"badge_id": 0,
"cargo_report_id": 0,
"query_msg": "string",
"freight_local_amount": 0,
"freight_curr_rate": 0,
"insurance_local_amount": 0,
"insurance_local_curr_rate": 0,
"other_local_amount": 0,
"other_local_curr_rate": 0,
"vat_adjustment_local_amount": 0,
"vat_adjustment_curr_rate": 0,
"fec_codes": "string",
"ern": "string",
"doc_mode": "string",
"gvms_manifesto_id": 0,
"ducr_from": "string",
"is_template": true,
"entry_time": "string",
"warehouse_type": "string",
"dti_code": "string",
"tenant_id": 0,
"printable_dti_codes": "string",
"bank_code": "string",
"bank_ref_id": "string",
"dti_transaction_amount": 0,
"service_code": "string",
"incoterm": "string",
"incoterm_location": "string",
"trader_ref": "string",
"arrival_transport_type": "string",
"total_payable_other": "string",
"s3files_count": 0,
"clearance_entry_date": "string",
"clearance_entry_time": "string",
"payment_ref": "string",
"arrival_notification_date": "string",
"search_key": "string",
"additional_infos": "string",
"consignment_id": 0,
"previous_mrn_no": "string",
"previous_mrn_date": "string",
"branch_id": 0,
"goods_arrival_date": "string",
"is_dummy": true,
"owner_company_id": 0,
"exlude_consignor": true,
"exlude_consignee": true,
"departure_date": "string",
"team_id": 0,
"customer_id": 0,
"financial_status": "string",
"closed_date": "string",
"debit_invoice_nos": "string",
"credit_invoice_nos": "string",
"notification_emails": "string"
}
]
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2025-03-25 10:49:03