1. Customs Declarations
  • Introduction
  • Getting Started
  • Authentication
  • Error Handling
  • Contact Support
  • Modaltrans API
    • Get Auth Token
      • Get Bearer Token
    • Accounting
      • Invoices
        • Retrieve an Invoice
        • List all Invoices
      • Invoice Items
        • List all Invoice Items
        • Deleted Invoice Items
      • Financials
        • Retrieve Financial Information
    • Customs
      • NCTS Declarations
        • List all NCTS Declarations
        • Retrieve an NCTS Declaration
        • Create an NCTS Declaration with XML Data
        • Update an NCTS Declaration
        • Download an NCTS Declaration
        • List Timelines of NCTS Declaration
        • List Messages of NCTS Decalaration
      • Customs Declarations
        • List all Customs Declarations
          GET
        • Retrieve a Custom Declaration
          GET
        • Create a Customs Declaration
          POST
        • Update a Custom Declaration
          PATCH
        • Delete a Custom Declaration
          DELETE
        • Retrieve a Declaration History
          GET
        • Retrieve an MRN Status of Declaration
          GET
      • Declaration Requests
        • List all Declaration Orders
        • Retrieve a Declaration Request
        • Create a Declaration Request
        • Update a Declaration Request
        • Delete a Declaration Request
      • Ens Declarations
        • Create an Ens Declaration
        • Download an Ens Declaration
    • Logistics
      • Bookings
        • Retrieve a Booking
        • List all Bookings
        • Create a Booking
        • Update a Booking
      • Locations
        • List all Locations
        • Retrieve a Location
      • Positions
        • Update a Transport
        • Get All Positions
      • Tracking
        • Available Shipping Lines
        • Retrieve a Tracking Data
        • Subscribe to Tracking
      • Shipments
        • Retrieve a Shipment
        • List All Shipments
        • Retrieve Financials of Shipment
        • List Contacts of the Shipment
        • Create a Shipment
        • Update a Shipment
    • Depot
      • Orders
        • Retrieve an Order
        • List all Orders
        • Create an Order
        • Update an Order
      • Products
        • Retrieve a Product
        • List all Products
        • Create a Product
        • Update a Product
        • List Product Stocks
      • Inventories
        • List all Inventories
    • Fleet Management
      • Drivers
        • Retrieve a Driver
        • Retrieve a Driver's Vehicle
        • List Driver Positions
        • Update a Driver
      • Vehicles
        • Retrieve a Vehicle
        • Update a Vehicle
      • Gps Service Controller
        • Create Gps Responses
      • Service Logs
        • List all Service Logs
        • Retrieve a Service Log
        • Create a Service Log
        • Delete a Service Log
        • Update a Service Log
      • Periodic Documents
        • Retrieve a Periodic Document
        • Update a Periodic Document
        • Create a Periodic Document
    • CRM
      • Companies
        • List all Companies
        • Retrieve a Company
        • Create a Company
        • Update a Company
        • Delete a Company
        • List Company Credit Limits
    • Timelines
      • Retrieve a Timeline
      • List Timelines
      • Create a Timeline
    • S3 Files
      • List all S3Files
      • Create an S3File
      • Delete an S3File
    • Notifications
      • List all Notifications
      • Update a Notification Status
    • User Details
      • List User Details
      • Update User Details
  1. Customs Declarations

List all Customs Declarations

Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
GET
/api/v1/customs_declarations
Returns list of all Customs Declarations (Export/Import).

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params

Request Code 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?from_date=&page=' \
--header 'Authorization: Bearer <token>'

Responses

🟢200OK
application/json
Body

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:48:57
Previous
List Messages of NCTS Decalaration
Next
Retrieve a Custom Declaration
Built with