- 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 an NCTS Declaration
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
GET
/api/v1/ncts_declarations/{reference}{id}{mrn}{lrn}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
reference
string
required
Example:
SF240003SUPREME
id
integer
required
mrn
string
required
lrn
string
required
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/ncts_declarations/SF240003SUPREME'
Responses
🟢200OK
application/json
Body
transaction_id
integer
required
reference
string
required
doc_type
string
required
doc_date
string <date>
required
vehicle_code
string
required
vehicle_coun
string
required
trailer_code
string
required
trailer_coun
string
required
border_cross_vehicle
string
required
container
string
required
seal_info
string
required
security
boolean
required
tanker
boolean
required
is_aeo
boolean
required
aeo_location
string
required
transit_date
string <date>
required
departure_custom_code
string
required
dispatch_country_id
string
required
load_place
string
required
goods_location
string
required
arrival_custom_code
string
required
destination_country_id
string
required
unload_place
string
required
border_custom_code
string
required
transit_customs_codes
string
required
transit_countries_codes
string
required
carrier_name
string
required
carrier_address
string
required
carrier_postcode
string
required
carrier_city
string
required
carrier_country_id
string
required
carrier_taxno
string
required
carrier_eori_code
string
required
custom_line
string
required
custom_staff_name
string
required
trans_method
string
required
roro_operator_code
string
required
guarantee_price
number
required
guarantee_curr
string
required
status
string
required
lrn_no
string
required
lrn
string
required
mrn
string
required
mrn_no
string
required
lrn_url
string
required
manifesto_price
number
required
manifesto_curr
string
required
position_no
string
required
remote_ref
string
required
notes
string
required
letter_grn
string
required
guarantor_name
string
required
guarantor_city
string
required
guarantor_taxno
string
required
guarantor_address
string
required
guarantor_postcode
string
required
guarantor_eori_code
string
required
guarantor_country_id
string
required
mrn_date
string <date-time>
required
stamp_duty
string
required
ncts5_checker
boolean
required
released_at
string <date-time>
required
goods_attributes
array [object {30}]
optional
line_no
integer
required
gtip_code
string
required
commodity
string
required
brut_wg
number
required
net_wg
number
required
invoice_amount
number
required
invoice_curr
string
required
exp_customs_type
string
required
exp_customs_partial
boolean
required
exp_customs_no
string
required
manifesto_type
string
required
dep_country_id
string
required
arv_country_id
string
required
sender_taxno
string
required
sender_name
string
required
sender_address
string
required
sender_postcode
string
required
sender_city
string
required
sender_country_id
string
required
sender_eori_code
string
required
consignee_taxno
string
required
consignee_name
string
required
consignee_address
string
required
consignee_postcode
string
required
consignee_city
string
required
consignee_country_id
string
required
consignee_eori_code
string
required
packs_attributes
array [object {3}]
required
documents_attributes
array [object {3}]
required
produced_documents_attributes
array [object {5}]
required
Example
{
"transaction_id": 0,
"reference": "string",
"doc_type": "string",
"doc_date": "2019-08-24",
"vehicle_code": "string",
"vehicle_coun": "string",
"trailer_code": "string",
"trailer_coun": "string",
"border_cross_vehicle": "string",
"container": "string",
"seal_info": "string",
"security": true,
"tanker": true,
"is_aeo": true,
"aeo_location": "string",
"transit_date": "2019-08-24",
"departure_custom_code": "string",
"dispatch_country_id": "string",
"load_place": "string",
"goods_location": "string",
"arrival_custom_code": "string",
"destination_country_id": "string",
"unload_place": "string",
"border_custom_code": "string",
"transit_customs_codes": "string",
"transit_countries_codes": "string",
"carrier_name": "string",
"carrier_address": "string",
"carrier_postcode": "string",
"carrier_city": "string",
"carrier_country_id": "string",
"carrier_taxno": "string",
"carrier_eori_code": "string",
"custom_line": "string",
"custom_staff_name": "string",
"trans_method": "string",
"roro_operator_code": "string",
"guarantee_price": 0,
"guarantee_curr": "string",
"status": "string",
"lrn_no": "string",
"lrn": "string",
"mrn": "string",
"mrn_no": "string",
"lrn_url": "string",
"manifesto_price": 0,
"manifesto_curr": "string",
"position_no": "string",
"remote_ref": "string",
"notes": "string",
"letter_grn": "string",
"guarantor_name": "string",
"guarantor_city": "string",
"guarantor_taxno": "string",
"guarantor_address": "string",
"guarantor_postcode": "string",
"guarantor_eori_code": "string",
"guarantor_country_id": "string",
"mrn_date": "2019-08-24T14:15:22Z",
"stamp_duty": "string",
"ncts5_checker": true,
"released_at": "2019-08-24T14:15:22Z",
"goods_attributes": [
{
"line_no": 0,
"gtip_code": "string",
"commodity": "string",
"brut_wg": 0,
"net_wg": 0,
"invoice_amount": 0,
"invoice_curr": "string",
"exp_customs_type": "string",
"exp_customs_partial": true,
"exp_customs_no": "string",
"manifesto_type": "string",
"dep_country_id": "string",
"arv_country_id": "string",
"sender_taxno": "string",
"sender_name": "string",
"sender_address": "string",
"sender_postcode": "string",
"sender_city": "string",
"sender_country_id": "string",
"sender_eori_code": "string",
"consignee_taxno": "string",
"consignee_name": "string",
"consignee_address": "string",
"consignee_postcode": "string",
"consignee_city": "string",
"consignee_country_id": "string",
"consignee_eori_code": "string",
"packs_attributes": [
{
"pack_type": "AE",
"pack_count": 0,
"notes": "string"
}
],
"documents_attributes": [
{
"doc_type": "T1",
"doc_no": "string",
"pre_post": "string"
}
],
"produced_documents_attributes": [
{
"code": "string",
"reference": "string",
"status": "string",
"reason": "string",
"quantity": 0
}
]
}
]
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2025-03-25 10:48:08