BodyliaBodylia OpenB2BSign in
← All guides

Customs declaration data

nutrab2b.logistics.customs_data.v2 · Logistics & customs

Purpose
Pre-filled data for import/export filing: HS and national codes, origin, preference, values, licences, prior notice.
When to send
Before export / import filing.
Sender → receiver
Exporter / importer of record → Broker, buyer
Expected responses
ACK
Equivalent standards
EDIFACT: CUSDEC · X12: 309/350 (US ACE)
Scenarios using it
Full order-to-cash · India → EU → US re-export

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
declaration_refstringyesReference
asn_idstringyesShipment
procedurestringyesCustoms procedurecustoms_procedure
export_countrystringyesExport countrycountry
import_countrystringyesImport countrycountry
filing_datedateyesPlanned filing dateNB-R017
importer_eoristringImporter EORI / IOR number
fda_prior_noticestringUS FDA prior notice confirmation
itemsarray<object>yesDeclared items
line_nointegeryesLine
hs_codestringyesHS (6)NB-R005 NB-R017^\d{4}(\.\d{2}){1,2}$|^\d{6,10}$
national_codestringyesImport country national tariff lineNB-R005^\d{8,10}$
descriptionstringyesGoods description
originstringyesCountry of origincountry
preferencestringPreferential origin basisorigin_preference
net_quantityobjectyesNet quantity
valuenumberyesQuantity
uomstringyesUnit of measureuom
customs_valueobjectyesCustoms value
amountnumberyesAmount in major units, decimals ≤ currency minor unitsNB-R011
currencystringyesCurrencycurrency
formstringProduct formNB-R017product_form

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-customs-ASN-9001-1",
  "type": "nutrab2b.logistics.customs_data.v2",
  "source": "urn:gln:0614141000012:erp",
  "subject": "ASN-9001",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/CUSTOMS.json",
  "sender": {
    "gln": "0614141000012"
  },
  "receiver": {
    "gln": "4012345000009"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "CUSTOMS:ASN-9001:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "declaration_ref": "CD-2026-881",
    "asn_id": "ASN-9001",
    "procedure": "IM4",
    "export_country": "IN",
    "import_country": "US",
    "filing_date": "2026-11-29",
    "fda_prior_notice": "PN-88123",
    "items": [
      {
        "line_no": 1,
        "hs_code": "1302.19",
        "national_code": "1302194000",
        "description": "Ashwagandha root extract",
        "origin": "IN",
        "preference": "NONE",
        "net_quantity": {
          "value": 500,
          "uom": "KGM"
        },
        "customs_value": {
          "amount": 29000,
          "currency": "USD"
        },
        "form": "EXTRACT_DRY"
      }
    ]
  }
}

Mapping checklist