2. Add shipment parcels with items for async processing
Parameter | Type | Description | Mandatory? Yes/ No | Constraints |
containerId | String | Package/Bag number | Yes | Different shipments cannot include same package number |
clientRefID | String | Client’s parcel number (client-side identifier) | Yes | Unique Client reference ID |
mailType | String | Service that is selected for parcel delivery | Yes | Allowed values: REGISTERED, NOT_REGISTERED, EMS, PRIME, PARCEL_EPG, PARCEL_UPU, TRACKABLE, NONPOSTAL, Use NONPOSTAL for Customs Clearance shipments. |
tpServiceCode | String | Third-party service code | No | Channel code with “|OPS-CC” suffix for customs clearance flows. |
customClearanceType | String | Customs clearance type | Yes | Allowed values: DDP, DDU, CLEARED |
parcelID | String | Parcel number | Yes, when parcel ID is generated by client | 1. Must be unique |
weight | Number | Parcel total weight in kilograms | Yes | Must be a positive number |
price | Number | Total Price of the parcel, currently expected in USD | No | 1. TotalPrice > 0 2. Max 2 decimals 3. If not filled, the system will calculate based on quantity & item price |
currency | String | Currency of the price | Yes | |
consignorVatRep | String | Consignor VAT representative. In EU IOSS Broker is expected | Yes | Field is mandatory when non-EU sender sends DDP EU non-cleared goods |
originator | Party Object | Information about the originator | Yes | Must include “address” object with country code to indicate origin of goods “CN” |
consignor | Party Object | Information about the consignor | Yes | Must include “name”, “address” and represents sender. |
recipient | Party Object | Information about the recipient | Yes | Must include “name”, “phoneNumber”, “address” object for importer |
items | Array of Items Object | List of items in the parcel | Yes | Each item must include “commodity”, “hsCode”, “quantity”, “weight”, “price” |
Party Object
Parameter | Type | Description | Mandatory? Yes/ No | Constraints |
name | String | Sender/Recipient name | Yes | |
phoneNumber | String | Sender/Recipient contact phone number | No | |
String | Sender/Recipient contact email address | No | ||
address | Address Object | Address of the Sender/Recipient | Yes | Must include “country” |
Address Object
Parameter | Type | Description | Mandatory? Yes/ No | Constraints |
street | String | Street address of the consignor/recipient | Yes, if address is not stated | |
house | String | House number of the consignor/recipient | No | |
building | String | Building number of the consignor/recipient | No | |
flat | String | Flat number of the consignor/recipient | No | |
city | String | City of the consignor/recipient | Yes | |
county | String | County of the consignor/recipient | No | |
zip | String | ZIP code of the consignor/recipient | Yes | |
country | String | Destination country of the consignor/recipient | Yes | 2-letter country code |
address | String | Consignor/Recipient address | Yes, if Street+House+Building is not stated |
Item Object
Parameter | Type | Description | Mandatory? Yes/ No | Constraints |
commodity | String | Commodity description, minimum 5 letter requirement | Yes | Min. letters in description = 5 |
hsCode | String | 6 digit HS code | Yes | Must be a valid HS code |
quantity | Number | Quantity of items inside parcel | Yes | Quantity > 0 |
weight | Number | Weight of the item inside parcel, in kilograms | Yes | itemWeight > 0 |
price | Number | Price of the item inside the parcel in target currency | Yes | itemPrice > 0, Max 2 decimals |
sku | String | Stock keeping unit, merchant product code | Yes/No | Mandatory ex AMS shipments |
url | String | Link to advertisement | No | Must be a valid URL format |
Authentication
Basic authentication of the form Basic <base64(username:password)>.
