DOCS

Tell Zonos about your postal shipments

Send parcel and conveyance data for shipments bound for the United States and the European Union.

Two calls, the same for every destination.

Call↕Sends↕When↕
brokerageManifestLinesCreateParcels: goods, parties, references. Max 100 per requestOn parcel acceptance
brokerageManifestCreateThe conveyance, naming parcel ids from call 1On tender to the carrier

Neither call blocks the other. Use manifestLinesLink for parcels accepted after the conveyance exists.

Retain the id returned by call 1; it is required for call 2.

Landed cost is calculated asynchronously. A success response confirms acceptance, not quoting. Item and party data is validated during calculation, so send the fields below even where the API accepts their absence.

Some destinations add a PDDP surcharge. See PDDP surcharges by destination.

Non-US destinations have a one-call alternative.

Field legend 

Label↕Meaning↕
RequiredThe API rejects the request without it.
Required for EUMust be sent for every EU-bound parcel. The API may accept a parcel without it, but the quote can be wrong or fail and the shipment is not compliant.
Required for USMust be sent for every US-bound parcel. A customs entry cannot be filed without it.
RecommendedNot needed to quote, but used by destination posts and customs. Send it whenever you have it.
OptionalSend it when it applies.

Step 1: Tell us about the parcels 

Parcel fields

Field↕Requirement↕Notes↕
trackingNumberRequiredItem tracking number.
currencyCodeRequiredCurrency of every item value on the parcel.
endUseRequiredDOCUMENTS, GIFT, FOR_RESALE, NOT_FOR_RESALE, or RETURN.
itemsRequiredAt least one item. See item fields.
partiesRequiredOne ORIGIN and one DESTINATION party. See party fields.
shippingCostRequired for EUShipping charge for the parcel. EU duty and VAT are assessed on the CIF value, so a missing shipping cost is treated as zero.
shippingCostCurrencyRequired for EUCurrency of shippingCost. Defaults to USD when omitted.
taxIdNumberOptionalThe IOSS number, when the sale was made under IOSS. See IOSS.
consignmentWeightRecommendedGross parcel weight in kilograms. Send the same value on every line that shares a tracking number. Not used to assess duty.
referenceNumberRecommendedYour unique reference for the parcel, used to prevent duplicates. See duplicate parcels.
shipperAccountIdRecommendedThe Zonos organization ID or your external ID for the shipper's verified account. Without it the parcel resolves to you rather than to the merchant behind it.
postalOperatorCodeOptionalOverrides the request-level default on the short path. Ignored elsewhere.
declarationIdOptionalA Zonos declaration already created for this parcel. Normally resolved from the order.

Item fields

One entry per line of goods. A parcel holding three classifications is one parcel with three entries.

Field↕Requirement↕Notes↕
quantityRequiredNumber of units.
countryOfOriginRequired2-letter ISO country code. The country of manufacture, not of posting.
amountRequiredUnit value. Send exactly one of amount or totalAmount.
totalAmountRequiredExtended value for all units. When sent instead of amount, the unit value is totalAmount / quantity.
descriptionRequiredPlain description of the goods.
measurementsRequiredInclude a net weight entry (WEIGHT per unit, or TOTAL_WEIGHT for all units, not both). See below.
hsCodeRequired for USHS or tariff code, per line of goods. 10 digits preferred, 6 minimum.
customsDescriptionOptionalCustoms-specific description, when it differs from description.
provinceOfOriginOptionalProvince or state of origin, where a country requires it.
skuRecommendedYour SKU. See product identifiers.
productIdRecommendedYour product identifier.
gtinRecommendedGlobal Trade Item Number, digits only.
upcOptionalUsed as the gtin when no gtin is sent.
nameOptionalShort product name.
documentIdOptionalLinks a document you have already uploaded.
productCompositionOptionalMaterials that make up the product. Each entry needs material and percentage.
marketplaceOptionalMarketplace the item was sold on, as name and url.

HS code and country of origin are per line of goods. A parcel holding goods of different classifications needs a code and an origin for each. One code for a mixed parcel cannot be filed into the United States.

Measurements. Each entry needs a type, unitOfMeasure, and value. Weight is net and covers all units on that line, so do not multiply by quantity. This is the weight duty is assessed on.

  • type: WEIGHT, TOTAL_WEIGHT, VOLUME, LENGTH, WIDTH, HEIGHT, or ALCOHOL_BY_VOLUME
  • unitOfMeasure: GRAM, KILOGRAM, OUNCE, POUND, LITER, MILLILITER, CENTIMETER, METER, MILLIMETER, INCH, FOOT, YARD, or PERCENTAGE

Product composition. Each entry takes material and percentage, plus optional countryOfMeltAndPour, countryOfCast, primaryCountryOfSmelt, and secondaryCountryOfSmelt.

Party fields

Each party has a type (ORIGIN for the sender, DESTINATION for the consignee), a person, and a location.

Field↕Origin (sender)↕Destination (consignee)↕
location.countryCodeRequiredRequired
location.line1RequiredRequired
location.locality (city)RequiredRequired
location.postalCodeRecommendedRequired (except Ireland)
location.administrativeAreaCodeOptionalRequired for US and Canada
person.firstNameRequiredRequired
person.lastNameRequiredRequired
person.emailRequired for EURequired for EU
person.companyNameOptionalOptional
person.phoneOptionalOptional

Both parties are named on the customs declaration. Incomplete parties are the most common cause of clearance failure.

Origin postal codes are recommended, not required: Hong Kong, the UAE, and Qatar have none. EU consignee postal codes are required except in Ireland.

administrativeAreaCode takes the two-letter code: TX, not TEXAS.

Example

1mutation BrokerageManifestLinesCreate($input: [ManifestLineInput!]!) {
2 brokerageManifestLinesCreate(input: $input) {
3 id
4 trackingNumber
5 referenceNumber
6 taxIdNumber
7 }
8}

RESPONSE

json

{
  "data": {
    "brokerageManifestLinesCreate": [
      {
        "id": "line_abc123def456",
        "trackingNumber": "RB123456799GB",
        "referenceNumber": "ITM-00184413",
        "taxIdNumber": "IM5281234567"
      }
    ]
  }
}

Product identifiers 

Four fields on each line of goods.

Send on the item↕What it is↕
productIdYour own product identifier
skuYour stock keeping unit
gtinThe canonical GTIN
manufacturerProductIdThe manufacturer's part number

What Europe does with them

EU PDDP carries seven product identifier fields. Three are fed directly from what you send on the item, so sending more here fills more of the declaration.

PDDP field↕Fed from↕Limit↕
merchantProductIdentifier (MPID)productId, falling back to sku50
manufacturerStandardizedProductIdentifier (S PID)gtindigits only
manufacturerNonStandardizedProductIdentifier (NS PID)manufacturerProductId70

lccProviderProductIdentifier is set from our item id. manufacturerIdentifier is not sent.

Constraints:

  • gtin is digits only. 05012345678900, not 0-50123-45678-9.
  • Send gtin or upc, not both. A UPC is a GTIN-12; upc is normalized into gtin.
  • manufacturerProductId allows 70 characters. All other identifier fields truncate at 50.
  • Omit fields you do not hold. Empty strings are rejected. All seven have a minimum length of one.

Step 2: Tell us about the conveyance 

Sent on tender to the carrier, naming the parcel ids from step 1.

Field↕Requirement↕Notes↕
postalOperatorCodeRequiredYour registered operator code.
carrierCodeRequiredIATA 2-letter code (air) or SCAC (truck, ocean).
serviceNumberRequiredFlight, voyage, or trip number.
arrivalDateRequiredISO 8601 date and time of arrival.
destinationCodeRequiredWhere the conveyance arrives. Airport or port code.
transportationModeRecommendedAIR, SEA, ROAD, or RAIL. Defaults to AIR.
vesselNameRequired for seaThe ship. Customs identifies an arriving vessel by name, not by carrier code.
originCodeRecommendedWhere the conveyance departed.
awbPrefixOptionalAir waybill prefix.
awbNumberOptionalAir waybill number.
weightOptionalTotal conveyance weight.
weightUnitOptionalUnit for weight.
amountOptionalTotal conveyance value.

The air waybill is optional. The conveyance key is derived from carrierCode, serviceNumber, and the date.

Send destinationCode and originCode in your existing format. Zonos maintains the mapping to customs port lists.

1mutation BrokerageManifestCreate($input: ManifestInput!, $lineIds: [ID!]!) {
2 brokerageManifestCreate(input: $input, lineIds: $lineIds) {
3 id
4 carrierCode
5 serviceNumber
6 destinationCode
7 arrivalDate
8 }
9}

A sea despatch is the same call with transportationMode: SEA, a SCAC in carrierCode, the voyage number in serviceNumber, a vesselName, and an arrival date weeks rather than hours out.

Parcels accepted later

Parcels accepted after the conveyance exists attach with manifestLinesLink.

MUTATION

graphql

mutation ManifestLinesLink($manifestId: ID!, $lineIds: [ID!]!) {
  manifestLinesLink(manifestId: $manifestId, lineIds: $lineIds) {
    id
  }
}

A shorter path for Europe 

Non-US parcels can skip the conveyance. Pass the operator code alongside the array.

1mutation BrokerageManifestLinesCreate(
2$postalOperatorCode: PostalOperatorCode
3$input: [ManifestLineInput!]!
4) {
5 brokerageManifestLinesCreate(
6 postalOperatorCode: $postalOperatorCode
7 input: $input
8 ) {
9 id
10 trackingNumber
11 }
12}

postalOperatorCode supplies what the conveyance would otherwise carry. A parcel can override the request-level default with its own value.

US parcels always require a conveyance: the customs entry names the carrier, service, and arrival port.

EU data notes 

IOSS

Send the IOSS number in taxIdNumber when the sale was made under IOSS.

Format: IM, a 3-digit EU member state code, then 7 digits. Example: IM5281234567.

  • Valid: quoted without import VAT.
  • Malformed or absent: quoted with import VAT. Send the registration or omit the field. Do not send sequence numbers or line counts.

CIF values

EU duty and VAT are assessed on CIF value: goods plus shipping. Send shippingCost and shippingCostCurrency on every EU parcel. Omitting them treats shipping as zero and understates the quote.

Destination party

A DESTINATION party with the consignee's country code is required. It determines which rules apply.

US data notes 

Complete parties

Both parties require a full address: name, street, locality, postal code, state, country. administrativeAreaCode takes the two-letter state code.

Classification

A tariff code is required per line of goods: 10 digits preferred, 6 minimum. Six-digit codes are extended and validated. Lines with no code cannot be filed.

What we handle

Resolved by Zonos from your account configuration and the goods on the parcel:

  • Importer of record
  • Customs bond and surety
  • Entry type and filer code
  • Duty, tax, and fees
  • Transmission to customs

General notes 

Duplicate parcels

referenceNumber must be unique across your parcels. Reusing one returns the existing record and moves it to the new conveyance; its items and parties are not updated. To correct a parcel, contact Zonos rather than resending under the same reference.

Values

  • Send exactly one of amount or totalAmount per item. Sending both, or neither, fails the quote.
  • currencyCode is set once per parcel. Every item value on the parcel uses it.
  • If you send upc without gtin, the UPC is used as the GTIN.
  • Enum values are plain strings, for example "KILOGRAM".
Book a demo

Was this page helpful?


Get support·Legal docs·© 2026 Zonos