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↕
brokerageManifestLinesCreate
Parcels: goods, parties, references. Max 100 per request
On parcel acceptance
brokerageManifestCreate
The conveyance, naming parcel ids from call 1
On 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.
One ORIGIN and one DESTINATION party. See party fields.
shippingCost
Required for EU
Shipping charge for the parcel. EU duty and VAT are assessed on the CIF value, so a missing shipping cost is treated as zero.
shippingCostCurrency
Required for EU
Currency of shippingCost. Defaults to USD when omitted.
taxIdNumber
Optional
The IOSS number, when the sale was made under IOSS. See IOSS.
consignmentWeight
Recommended
Gross parcel weight in kilograms. Send the same value on every line that shares a tracking number. Not used to assess duty.
referenceNumber
Recommended
Your unique reference for the parcel, used to prevent duplicates. See duplicate parcels.
shipperAccountId
Recommended
The 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.
postalOperatorCode
Optional
Overrides the request-level default on the short path. Ignored elsewhere.
declarationId
Optional
A 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↕
quantity
Required
Number of units.
countryOfOrigin
Required
2-letter ISO country code. The country of manufacture, not of posting.
amount
Required
Unit value. Send exactly one of amount or totalAmount.
totalAmount
Required
Extended value for all units. When sent instead of amount, the unit value is totalAmount / quantity.
description
Required
Plain description of the goods.
measurements
Required
Include a net weight entry (WEIGHT per unit, or TOTAL_WEIGHT for all units, not both). See below.
hsCode
Required for US
HS or tariff code, per line of goods. 10 digits preferred, 6 minimum.
customsDescription
Optional
Customs-specific description, when it differs from description.
provinceOfOrigin
Optional
Province or state of origin, where a country requires it.
Materials that make up the product. Each entry needs material and percentage.
marketplace
Optional
Marketplace 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
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.countryCode
Required
Required
location.line1
Required
Required
location.locality (city)
Required
Required
location.postalCode
Recommended
Required (except Ireland)
location.administrativeAreaCode
Optional
Required for US and Canada
person.firstName
Required
Required
person.lastName
Required
Required
person.email
Required for EU
Required for EU
person.companyName
Optional
Optional
person.phone
Optional
Optional
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.
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.
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
}}
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.
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:
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".
Postal shipment API
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.
brokerageManifestLinesCreatebrokerageManifestCreateNeither call blocks the other. Use
manifestLinesLinkfor parcels accepted after the conveyance exists.Retain the
idreturned 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
Step 1: Tell us about the parcels
Parcel fields
trackingNumbercurrencyCodeendUseDOCUMENTS,GIFT,FOR_RESALE,NOT_FOR_RESALE, orRETURN.itemspartiesORIGINand oneDESTINATIONparty. See party fields.shippingCostshippingCostCurrencyshippingCost. Defaults toUSDwhen omitted.taxIdNumberconsignmentWeightreferenceNumbershipperAccountIdpostalOperatorCodedeclarationIdItem fields
One entry per line of goods. A parcel holding three classifications is one parcel with three entries.
quantitycountryOfOriginamountamountortotalAmount.totalAmountamount, the unit value istotalAmount / quantity.descriptionmeasurementsWEIGHTper unit, orTOTAL_WEIGHTfor all units, not both). See below.hsCodecustomsDescriptiondescription.provinceOfOriginskuproductIdgtinupcgtinwhen nogtinis sent.namedocumentIdproductCompositionmaterialandpercentage.marketplacenameandurl.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, andvalue. 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, orALCOHOL_BY_VOLUMEunitOfMeasure:GRAM,KILOGRAM,OUNCE,POUND,LITER,MILLILITER,CENTIMETER,METER,MILLIMETER,INCH,FOOT,YARD, orPERCENTAGEProduct composition. Each entry takes
materialandpercentage, plus optionalcountryOfMeltAndPour,countryOfCast,primaryCountryOfSmelt, andsecondaryCountryOfSmelt.Party fields
Each party has a
type(ORIGINfor the sender,DESTINATIONfor the consignee), aperson, and alocation.location.countryCodelocation.line1location.locality(city)location.postalCodelocation.administrativeAreaCodeperson.firstNameperson.lastNameperson.emailperson.companyNameperson.phoneBoth 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.
administrativeAreaCodetakes the two-letter code:TX, notTEXAS.Example
mutation BrokerageManifestLinesCreate($input: [ManifestLineInput!]!) {brokerageManifestLinesCreate(input: $input) {idtrackingNumberreferenceNumbertaxIdNumber}}RESPONSE
json
{ "data": { "brokerageManifestLinesCreate": [ { "id": "line_abc123def456", "trackingNumber": "RB123456799GB", "referenceNumber": "ITM-00184413", "taxIdNumber": "IM5281234567" } ] } }Product identifiers
Four fields on each line of goods.
productIdskugtinmanufacturerProductIdWhat 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.
merchantProductIdentifier(MPID)productId, falling back toskumanufacturerStandardizedProductIdentifier(S PID)gtinmanufacturerNonStandardizedProductIdentifier(NS PID)manufacturerProductIdlccProviderProductIdentifieris set from our item id.manufacturerIdentifieris not sent.Constraints:
gtinis digits only.05012345678900, not0-50123-45678-9.gtinorupc, not both. A UPC is a GTIN-12;upcis normalized intogtin.manufacturerProductIdallows 70 characters. All other identifier fields truncate at 50.Step 2: Tell us about the conveyance
Sent on tender to the carrier, naming the parcel ids from step 1.
postalOperatorCodecarrierCodeserviceNumberarrivalDatedestinationCodetransportationModeAIR,SEA,ROAD, orRAIL. Defaults toAIR.vesselNameoriginCodeawbPrefixawbNumberweightweightUnitweight.amountThe air waybill is optional. The conveyance key is derived from
carrierCode,serviceNumber, and the date.Send
destinationCodeandoriginCodein your existing format. Zonos maintains the mapping to customs port lists.mutation BrokerageManifestCreate($input: ManifestInput!, $lineIds: [ID!]!) {brokerageManifestCreate(input: $input, lineIds: $lineIds) {idcarrierCodeserviceNumberdestinationCodearrivalDate}}A sea despatch is the same call with
transportationMode: SEA, a SCAC incarrierCode, the voyage number inserviceNumber, avesselName, 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.
mutation BrokerageManifestLinesCreate($postalOperatorCode: PostalOperatorCode$input: [ManifestLineInput!]!) {brokerageManifestLinesCreate(postalOperatorCode: $postalOperatorCodeinput: $input) {idtrackingNumber}}postalOperatorCodesupplies 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
taxIdNumberwhen the sale was made under IOSS.Format:
IM, a 3-digit EU member state code, then 7 digits. Example:IM5281234567.CIF values
EU duty and VAT are assessed on CIF value: goods plus shipping. Send
shippingCostandshippingCostCurrencyon every EU parcel. Omitting them treats shipping as zero and understates the quote.Destination party
A
DESTINATIONparty 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.
administrativeAreaCodetakes 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:
General notes
Duplicate parcels
referenceNumbermust 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
amountortotalAmountper item. Sending both, or neither, fails the quote.currencyCodeis set once per parcel. Every item value on the parcel uses it.upcwithoutgtin, the UPC is used as the GTIN."KILOGRAM".Was this page helpful?