{
"webhookId": 12,
"eventName": "customs_declarations/status_changed",
"deliveryId": "3b8f2c1e-7d45-4a9b-9e62-0f1d8c7a5b24",
"eventKey": "9c1d4e7a-2b3f-5a8c-b6d0-4e2f7a9c1b35",
"sentAt": "2026-10-09T10:42:17Z",
"recordType": "customs_declarations",
"previousStatus": "accepted",
"status": "cleared",
"data": [
{
"transaction_id": "900123",
"reference": "GB2610000123",
"doc_date": "2026-10-08",
"status": "cleared",
"lrn": null,
"mrn": "26GB4F7K2M9P1Q3R58",
"csp_code": null,
"service_code": "cds",
"doc_type": "import",
"declaration_type": "IMD",
"commercial_ref": "PO-58213",
"ducr": "6GB123456789000-58213",
"mucr": null,
"ducr_part": null,
"declarant_eori": "GB123456789000",
"declarant_name": "EXAMPLE FORWARDING LTD",
"declarant_address": "1 DOCK ROAD",
"declarant_city_name": "SOUTHAMPTON",
"declarant_country_id": "GB",
"declarant_postcode": "SO14 3XX",
"declarant_rep": "2",
"export_country_id": "CN",
"consignor_eori": null,
"consignor_name": "EXAMPLE MANUFACTURING CO LTD",
"consignor_address": "88 INDUSTRIAL AVENUE",
"consignor_city_name": "NINGBO",
"consignor_country_id": "CN",
"consignor_postcode": "315000",
"multiple_consignor": false,
"import_country_id": "GB",
"consignee_eori": "GB987654321000",
"consignee_name": "EXAMPLE IMPORTS LTD",
"consignee_address": "12 TRADE PARK",
"consignee_city_name": "LONDON",
"consignee_country_id": "GB",
"consignee_postcode": "E16 2XX",
"multiple_consignee": false,
"invoice_amount": "2920.00",
"invoice_curr": "USD",
"goods_location": "GBAUSOUSOUSOU",
"border_transport_type": "1",
"border_vehicle_code": "EXAMPLE VESSEL",
"border_vehicle_coun": "PA",
"inland_transport_type": "3",
"container_no": "ABCU1234567",
"gvms_interested": false,
"freight_amount": "450.00",
"freight_curr": "USD",
"payment_method": "E",
"carrier_eori": null,
"carrier_name": null,
"carrier_address": null,
"carrier_city_name": null,
"carrier_country_id": null,
"carrier_postcode": null,
"total_packages": 120,
"person_in_charge": "J SMITH",
"premises_code": null,
"first_dan_no": "1234567",
"second_dan_no": null,
"insurance_amount": "0.0",
"other_amounts": "0.0",
"apportment_indicator": null,
"total_gross_weight": "1850.0",
"total_net_weight": "1700.0",
"airfreight_cost": "0.0",
"insurance_curr": null,
"other_amounts_curr": null,
"vat_adjustment": "0.0",
"vat_adjustment_curr": null,
"discount_amount": "0.0",
"discount_curr": null,
"discount_rate": "0.0",
"warehouse_type": null,
"incoterm": "FOB",
"incoterm_location": "NINGBO",
"trader_ref": "SHP-2026-0458",
"arrival_transport_type": "1",
"parties_attributes": [
{
"option": "fiscalref",
"type": "FR1",
"eori_code": "GB987654321"
}
],
"additions_deductions_attributes": [
],
"trader_guarantees_attributes": [
],
"tax_infos_attributes": [
{
"code": "A00",
"payment_method": "E",
"revenue_amount": "112.40"
},
{
"code": "B00",
"payment_method": "E",
"revenue_amount": "584.48"
}
],
"goods_attributes": [
{
"line_no": 1,
"commodity": "PLASTIC STORAGE BOXES",
"gtip_code": "3923100000",
"gtip_language": "EN",
"brut_wg": 1850.0,
"net_wg": 1700.0,
"sender_name": null,
"sender_address": null,
"sender_city": null,
"sender_country_id": null,
"sender_postcode": null,
"sender_eori_code": null,
"consignee_name": null,
"consignee_address": null,
"consignee_city": null,
"consignee_country_id": null,
"consignee_postcode": null,
"consignee_eori_code": null,
"invoice_amount": "2920.00",
"invoice_curr": "USD",
"exp_customs_no": null,
"exp_customs_type": null,
"container_no": "ABCU1234567",
"dep_country_id": null,
"sensitive_goods_code": null,
"additional_info": null,
"auto_chassis": null,
"auto_engine_number": null,
"origin_country_id": "CN",
"preference_request": "100",
"quota_desc": null,
"valuation_method": "1",
"valuation_adjustment": "0000",
"packs_attributes": [
{
"pack_type": "CT",
"pack_count": "120",
"notes": "ADDR"
}
],
"documents_attributes": [
{
"doc_type": "380",
"doc_no": "INV-58213",
"pre_post": "Z"
}
],
"produced_documents_attributes": [
{
"code": "N935",
"reference": "INV-58213",
"status": "AC",
"reason": "",
"quantity": "0.0"
}
],
"additional_codes_attributes": [
],
"tax_infos_attributes": [
{
"code": "A00",
"payment_method": "E",
"revenue_amount": "112.40"
},
{
"code": "B00",
"payment_method": "E",
"revenue_amount": "584.48"
}
]
}
]
}
]
}curl --location 'https://your-api-server.com' \
--header 'X-Modaltrans-Signature: sha256=4a1f0c9e2b7d63a85e14f0b2c9d7e3a61f58b0c4d2e9a7f13b6c8d0e5f2a9b71' \
--header 'X-Modaltrans-Delivery: 3b8f2c1e-7d45-4a9b-9e62-0f1d8c7a5b24' \
--header 'X-Modaltrans-Event: customs_declarations/status_changed' \
--header 'User-Agent: Modaltrans-Webhook/1.0' \
--header 'X-Api-Key: 3f9c1ab24e7d05b6c8fa1d3e9b470a52' \
--header 'Content-Type: application/json' \
--data '{
"webhookId": 12,
"eventName": "customs_declarations/status_changed",
"deliveryId": "3b8f2c1e-7d45-4a9b-9e62-0f1d8c7a5b24",
"eventKey": "9c1d4e7a-2b3f-5a8c-b6d0-4e2f7a9c1b35",
"sentAt": "2026-10-09T10:42:17Z",
"recordType": "customs_declarations",
"previousStatus": "accepted",
"status": "cleared",
"data": [
{
"transaction_id": "900123",
"reference": "GB2610000123",
"doc_date": "2026-10-08",
"status": "cleared",
"lrn": null,
"mrn": "26GB4F7K2M9P1Q3R58",
"csp_code": null,
"service_code": "cds",
"doc_type": "import",
"declaration_type": "IMD",
"commercial_ref": "PO-58213",
"ducr": "6GB123456789000-58213",
"mucr": null,
"ducr_part": null,
"declarant_eori": "GB123456789000",
"declarant_name": "EXAMPLE FORWARDING LTD",
"declarant_address": "1 DOCK ROAD",
"declarant_city_name": "SOUTHAMPTON",
"declarant_country_id": "GB",
"declarant_postcode": "SO14 3XX",
"declarant_rep": "2",
"export_country_id": "CN",
"consignor_eori": null,
"consignor_name": "EXAMPLE MANUFACTURING CO LTD",
"consignor_address": "88 INDUSTRIAL AVENUE",
"consignor_city_name": "NINGBO",
"consignor_country_id": "CN",
"consignor_postcode": "315000",
"multiple_consignor": false,
"import_country_id": "GB",
"consignee_eori": "GB987654321000",
"consignee_name": "EXAMPLE IMPORTS LTD",
"consignee_address": "12 TRADE PARK",
"consignee_city_name": "LONDON",
"consignee_country_id": "GB",
"consignee_postcode": "E16 2XX",
"multiple_consignee": false,
"invoice_amount": "2920.00",
"invoice_curr": "USD",
"goods_location": "GBAUSOUSOUSOU",
"border_transport_type": "1",
"border_vehicle_code": "EXAMPLE VESSEL",
"border_vehicle_coun": "PA",
"inland_transport_type": "3",
"container_no": "ABCU1234567",
"gvms_interested": false,
"freight_amount": "450.00",
"freight_curr": "USD",
"payment_method": "E",
"carrier_eori": null,
"carrier_name": null,
"carrier_address": null,
"carrier_city_name": null,
"carrier_country_id": null,
"carrier_postcode": null,
"total_packages": 120,
"person_in_charge": "J SMITH",
"premises_code": null,
"first_dan_no": "1234567",
"second_dan_no": null,
"insurance_amount": "0.0",
"other_amounts": "0.0",
"apportment_indicator": null,
"total_gross_weight": "1850.0",
"total_net_weight": "1700.0",
"airfreight_cost": "0.0",
"insurance_curr": null,
"other_amounts_curr": null,
"vat_adjustment": "0.0",
"vat_adjustment_curr": null,
"discount_amount": "0.0",
"discount_curr": null,
"discount_rate": "0.0",
"warehouse_type": null,
"incoterm": "FOB",
"incoterm_location": "NINGBO",
"trader_ref": "SHP-2026-0458",
"arrival_transport_type": "1",
"parties_attributes": [
{
"option": "fiscalref",
"type": "FR1",
"eori_code": "GB987654321"
}
],
"additions_deductions_attributes": [
],
"trader_guarantees_attributes": [
],
"tax_infos_attributes": [
{
"code": "A00",
"payment_method": "E",
"revenue_amount": "112.40"
},
{
"code": "B00",
"payment_method": "E",
"revenue_amount": "584.48"
}
],
"goods_attributes": [
{
"line_no": 1,
"commodity": "PLASTIC STORAGE BOXES",
"gtip_code": "3923100000",
"gtip_language": "EN",
"brut_wg": 1850.0,
"net_wg": 1700.0,
"sender_name": null,
"sender_address": null,
"sender_city": null,
"sender_country_id": null,
"sender_postcode": null,
"sender_eori_code": null,
"consignee_name": null,
"consignee_address": null,
"consignee_city": null,
"consignee_country_id": null,
"consignee_postcode": null,
"consignee_eori_code": null,
"invoice_amount": "2920.00",
"invoice_curr": "USD",
"exp_customs_no": null,
"exp_customs_type": null,
"container_no": "ABCU1234567",
"dep_country_id": null,
"sensitive_goods_code": null,
"additional_info": null,
"auto_chassis": null,
"auto_engine_number": null,
"origin_country_id": "CN",
"preference_request": "100",
"quota_desc": null,
"valuation_method": "1",
"valuation_adjustment": "0000",
"packs_attributes": [
{
"pack_type": "CT",
"pack_count": "120",
"notes": "ADDR"
}
],
"documents_attributes": [
{
"doc_type": "380",
"doc_no": "INV-58213",
"pre_post": "Z"
}
],
"produced_documents_attributes": [
{
"code": "N935",
"reference": "INV-58213",
"status": "AC",
"reason": "",
"quantity": "0.0"
}
],
"additional_codes_attributes": [
],
"tax_infos_attributes": [
{
"code": "A00",
"payment_method": "E",
"revenue_amount": "112.40"
},
{
"code": "B00",
"payment_method": "E",
"revenue_amount": "584.48"
}
]
}
]
}
]
}'