> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.leanmile.com/llms.txt.
> For full documentation content, see https://api.leanmile.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.leanmile.com/_mcp/server.

# 2. Add shipment parcels with items for async processing

POST https://v1/shipment/123-00000000/parcelsAsync
Content-Type: application/json

<table><tbody><tr><td><div><p><b>Parameter</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory? Yes/ No</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>containerId</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Package/Bag number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Different shipments cannot include same package number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>clientRefID</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Client’s parcel number (client-side identifier)</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Unique Client reference ID</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>mailType</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Service that is selected for parcel delivery</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Allowed values: REGISTERED, NOT_REGISTERED, EMS, PRIME, PARCEL_EPG, PARCEL_UPU, TRACKABLE, <b>NONPOSTAL, Use NONPOSTAL for Customs Clearance shipments.</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>tpServiceCode</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Third-party service code</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Channel code with "|OPS-CC" suffix for customs clearance flows.<br>1. SameDay-&gt; "SD RO|OPS-CC"/"UNIS LV|OPS-CC"<br>2. DPD-&gt; "DPD RO|OPS-CC" etc. Ask for more codes that should be used if needed.</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>customClearanceType</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Customs clearance type</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Allowed values: DDP, DDU, CLEARED<br><br><b>Use DDP for IOSS customs clearance EU flows.</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>parcelID</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Parcel number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes, when parcel ID is generated by client</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>1. Must be unique</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>weight</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Parcel total weight in kilograms</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must be a positive number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>price</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Total Price of the parcel, currently expected in USD</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>1. TotalPrice &gt; 0 2. Max 2 decimals</p><p>3. If not filled, the system will calculate based on quantity &amp; item price</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>currency</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Currency of the price</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>consignorVatRep</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Consignor VAT representative. In EU IOSS Broker is expected</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Field is mandatory when non-EU sender sends DDP EU non-cleared goods</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>originator</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party Object</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information about the originator</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must include "address" object with country code to indicate origin of goods "CN"</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>consignor</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party Object</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information about the consignor</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must include "name", "address" and represents sender.</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party Object</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information about the recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must include "name", "phoneNumber", "address" object for importer</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>items</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Array of Items Object</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>List of items in the parcel</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Each item must include "commodity", "hsCode", "quantity", "weight", "price"</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>

#### Party Object

<table><tbody><tr><td><div><p><b>Parameter</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory? Yes/ No</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>name</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient name</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>phoneNumber</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient contact phone number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>email</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient contact email address</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>address</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Address Object</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Address of the Sender/Recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must include "country"</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>

#### Address Object

<table><tbody><tr><td><div><p><b>Parameter</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory? Yes/ No</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>street</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Street address of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes, if address is not stated</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>house</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>House number of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>building</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Building number of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>flat</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Flat number of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>city</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>City of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>county</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>County of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>zip</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>ZIP code of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>country</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Destination country of the consignor/recipient</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>2-letter country code</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>address</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Consignor/Recipient address</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes, if Street+House+Building is not stated</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>

#### Item Object

<table><tbody><tr><td><div><p><b>Parameter</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory? Yes/ No</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>commodity</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Commodity description, minimum 5 letter requirement</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Min. letters in description = 5</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>hsCode</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>6 digit HS code</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must be a valid HS code</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>quantity</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Quantity of items inside parcel</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Quantity &gt; 0</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>weight</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Weight of the item inside parcel, in kilograms</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>itemWeight &gt; 0</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>price</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Price of the item inside the parcel in target currency</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>itemPrice &gt; 0, Max 2 decimals</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>sku</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Stock keeping unit, merchant product code</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes/No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Mandatory ex AMS shipments</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>url</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Link to advertisement</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must be a valid URL format</p></div><div contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>

Reference: https://api.leanmile.com/otp-cc-flow/1-shipments/2-add-shipment-parcels-with-items-for-async-processing

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: OTP CC Flow
  version: 1.0.0
paths:
  /v1/shipment/123-00000000/parcelsAsync:
    post:
      operationId: 2-add-shipment-parcels-with-items-for-async-processing
      summary: 2. Add shipment parcels with items for async processing
      description: >-
        <table><tbody><tr><td><div><p><b>Parameter</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory?
        Yes/ No</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>containerId</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Package/Bag
        number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Different
        shipments cannot include same package number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>clientRefID</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Client’s
        parcel number (client-side identifier)</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Unique
        Client reference ID</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>mailType</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Service
        that is selected for parcel delivery</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Allowed
        values: REGISTERED, NOT_REGISTERED, EMS, PRIME, PARCEL_EPG, PARCEL_UPU,
        TRACKABLE, <b>NONPOSTAL, Use NONPOSTAL for Customs Clearance
        shipments.</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>tpServiceCode</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Third-party
        service code</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Channel
        code with "|OPS-CC" suffix for customs clearance flows.<br>1.
        SameDay-&gt; "SD RO|OPS-CC"/"UNIS LV|OPS-CC"<br>2. DPD-&gt; "DPD
        RO|OPS-CC" etc. Ask for more codes that should be used if
        needed.</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>customClearanceType</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Customs
        clearance type</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Allowed
        values: DDP, DDU, CLEARED<br><br><b>Use DDP for IOSS customs clearance
        EU flows.</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>parcelID</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Parcel
        number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes,
        when parcel ID is generated by client</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>1.
        Must be unique</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>weight</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Parcel
        total weight in kilograms</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        be a positive number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>price</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Total
        Price of the parcel, currently expected in USD</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>1.
        TotalPrice &gt; 0 2. Max 2 decimals</p><p>3. If not filled, the system
        will calculate based on quantity &amp; item price</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>currency</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Currency
        of the price</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>consignorVatRep</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Consignor
        VAT representative. In EU IOSS Broker is expected</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Field
        is mandatory when non-EU sender sends DDP EU non-cleared
        goods</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>originator</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party
        Object</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information
        about the originator</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        include "address" object with country code to indicate origin of goods
        "CN"</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>consignor</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party
        Object</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information
        about the consignor</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        include "name", "address" and represents sender.</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Party
        Object</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Information
        about the recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        include "name", "phoneNumber", "address" object for
        importer</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>items</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Array
        of Items Object</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>List
        of items in the parcel</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Each
        item must include "commodity", "hsCode", "quantity", "weight",
        "price"</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>


        #### Party Object


        <table><tbody><tr><td><div><p><b>Parameter</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory?
        Yes/ No</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>name</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient
        name</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>phoneNumber</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient
        contact phone number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>email</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Sender/Recipient
        contact email address</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>address</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Address
        Object</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Address
        of the Sender/Recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        include "country"</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>


        #### Address Object


        <table><tbody><tr><td><div><p><b>Parameter</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory?
        Yes/ No</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>street</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Street
        address of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes,
        if address is not stated</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>house</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>House
        number of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>building</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Building
        number of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>flat</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Flat
        number of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>city</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>City
        of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>county</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>County
        of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>zip</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>ZIP
        code of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>country</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Destination
        country of the consignor/recipient</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>2-letter
        country code</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>address</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Consignor/Recipient
        address</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes,
        if Street+House+Building is not stated</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>


        #### Item Object


        <table><tbody><tr><td><div><p><b>Parameter</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Mandatory?
        Yes/ No</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Constraints</b></p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>commodity</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Commodity
        description, minimum 5 letter requirement</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Min.
        letters in description = 5</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>hsCode</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>6
        digit HS code</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        be a valid HS code</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>quantity</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Quantity
        of items inside parcel</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Quantity
        &gt; 0</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>weight</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Weight
        of the item inside parcel, in kilograms</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>itemWeight
        &gt; 0</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>price</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Number</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Price
        of the item inside the parcel in target currency</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>itemPrice
        &gt; 0, Max 2 decimals</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>sku</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Stock
        keeping unit, merchant product code</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Yes/No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Mandatory
        ex AMS shipments</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>url</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>String</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Link
        to advertisement</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>No</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td><td><div><p>Must
        be a valid URL format</p></div><div
        contenteditable="false"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>
      tags:
        - subpackage_1Shipments
      parameters:
        - name: reqId
          in: query
          description: Unique request ID for troubleshooting potential issues
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          description: Basic authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/1. Shipments_2. Add shipment parcels with
                  items for async processing_Response_200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1Shipment123-00000000ParcelsasyncRequestBadRequestError
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1Shipment123-00000000ParcelsasyncRequestUnauthorizedError
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1Shipment123-00000000ParcelsasyncRequestForbiddenError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1Shipment123-00000000ParcelsasyncRequestNotFoundError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1Shipment123-00000000ParcelsasyncRequestInternalServerError
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: >-
                  #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItems
servers:
  - url: https:/
    description: https://{baseurl}
components:
  schemas:
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsItemsItems:
      type: object
      properties:
        sku:
          description: Any type
        url:
          description: Any type
        price:
          type: number
          format: double
        hsCode:
          type: string
        weight:
          type: number
          format: double
        quantity:
          type: integer
        commodity:
          type: string
      required:
        - price
        - hsCode
        - weight
        - quantity
        - commodity
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsItemsItems
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignorAddress:
      type: object
      properties:
        zip:
          type: string
        city:
          type: string
        county:
          description: Any type
        country:
          type: string
        streetAddress:
          type: string
      required:
        - zip
        - city
        - country
        - streetAddress
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignorAddress
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignor:
      type: object
      properties:
        name:
          type: string
        email:
          description: Any type
        address:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignorAddress
        phoneNumber:
          description: Any type
        phoneNumber2:
          description: Any type
      required:
        - name
        - address
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignor
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipientAddress:
      type: object
      properties:
        zip:
          type: string
        city:
          type: string
        county:
          type: string
        country:
          type: string
        streetAddress:
          type: string
      required:
        - zip
        - city
        - county
        - country
        - streetAddress
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipientAddress
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipient:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
          format: email
        address:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipientAddress
        phoneNumber:
          type: string
        phoneNumber2:
          description: Any type
      required:
        - name
        - email
        - address
        - phoneNumber
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipient
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginatorAddress:
      type: object
      properties:
        zip:
          description: Any type
        city:
          description: Any type
        flat:
          description: Any type
        house:
          description: Any type
        county:
          description: Any type
        street:
          description: Any type
        country:
          type: string
        building:
          description: Any type
        streetAddress:
          description: Any type
      required:
        - country
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginatorAddress
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginator:
      type: object
      properties:
        address:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginatorAddress
      required:
        - address
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginator
    V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItems:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: >-
              #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsItemsItems
        price:
          type: integer
        weight:
          type: number
          format: double
        mailType:
          type: string
        parcelID:
          type: string
        consignor:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsConsignor
        recipient:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsRecipient
        originator:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItemsOriginator
        clientRefID:
          type: string
        containerId:
          type: string
        tpServiceCode:
          type: string
        consignorVatRep:
          type: string
        customClearanceType:
          type: string
      required:
        - items
        - price
        - weight
        - mailType
        - parcelID
        - consignor
        - recipient
        - originator
        - clientRefID
        - containerId
        - tpServiceCode
        - consignorVatRep
        - customClearanceType
      title: >-
        V1Shipment12300000000ParcelsAsyncPostRequestBodyContentApplicationJsonSchemaItems
    V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        nullable:
          type: boolean
        readOnly:
          type: boolean
      required:
        - nullable
        - readOnly
      title: >-
        V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
    1. Shipments_2. Add shipment parcels with items for async processing_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: integer
      required:
        - data
        - status
        - message
        - statusCode
      title: >-
        1. Shipments_2. Add shipment parcels with items for async
        processing_Response_200
    PostV1Shipment123-00000000ParcelsasyncRequestBadRequestError:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: string
        internalReference:
          type: string
      required:
        - data
        - status
        - message
        - statusCode
        - internalReference
      title: PostV1Shipment123-00000000ParcelsasyncRequestBadRequestError
    PostV1Shipment123-00000000ParcelsasyncRequestUnauthorizedError:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: string
        internalReference:
          type: string
      required:
        - data
        - status
        - message
        - statusCode
        - internalReference
      title: PostV1Shipment123-00000000ParcelsasyncRequestUnauthorizedError
    PostV1Shipment123-00000000ParcelsasyncRequestForbiddenError:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: string
        internalReference:
          type: string
      required:
        - data
        - status
        - message
        - statusCode
        - internalReference
      title: PostV1Shipment123-00000000ParcelsasyncRequestForbiddenError
    PostV1Shipment123-00000000ParcelsasyncRequestNotFoundError:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: string
        internalReference:
          type: string
      required:
        - data
        - status
        - message
        - statusCode
        - internalReference
      title: PostV1Shipment123-00000000ParcelsasyncRequestNotFoundError
    PostV1Shipment123-00000000ParcelsasyncRequestInternalServerError:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/V1Shipment12300000000ParcelsAsyncPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        message:
          type: string
        statusCode:
          type: string
        internalReference:
          type: string
      required:
        - data
        - status
        - message
        - statusCode
        - internalReference
      title: PostV1Shipment123-00000000ParcelsasyncRequestInternalServerError
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

```

## Examples



**Request**

```json
[
  {
    "items": [
      {
        "price": 2.8,
        "hsCode": "3304991000",
        "weight": 0.01,
        "quantity": 10,
        "commodity": "Smartphone cover"
      }
    ],
    "price": 28,
    "weight": 0.18,
    "mailType": "NONPOSTAL",
    "parcelID": "{{$guid}}",
    "consignor": {
      "name": "Test sender",
      "address": {
        "zip": "0000",
        "city": "Shenzhen",
        "country": "CN",
        "streetAddress": "Test sender address"
      }
    },
    "recipient": {
      "name": "Test Recipient",
      "email": "test@test.com",
      "address": {
        "zip": "20000",
        "city": "Test Rec City",
        "county": "Rec county",
        "country": "RO",
        "streetAddress": "Test delivery address"
      },
      "phoneNumber": "1234567678"
    },
    "originator": {
      "address": {
        "country": "CN"
      }
    },
    "clientRefID": "{{$guid}}",
    "containerId": "ContainerTest1",
    "tpServiceCode": "SD RO|OPS-CC",
    "consignorVatRep": "IM1234567890",
    "customClearanceType": "DDP"
  }
]
```

**Response**

```json
{
  "data": {
    "inserted": 1
  },
  "status": "OK",
  "message": "OK",
  "statusCode": 200
}
```

**SDK Code**

```python 1. Shipments_2. Add shipment parcels with items for async processing_example
import requests

url = "https://https/v1/shipment/123-00000000/parcelsAsync"

querystring = {"reqId":"{{$guid}}"}

payload = [
    {
        "items": [
            {
                "price": 2.8,
                "hsCode": "3304991000",
                "weight": 0.01,
                "quantity": 10,
                "commodity": "Smartphone cover"
            }
        ],
        "price": 28,
        "weight": 0.18,
        "mailType": "NONPOSTAL",
        "parcelID": "{{$guid}}",
        "consignor": {
            "name": "Test sender",
            "address": {
                "zip": "0000",
                "city": "Shenzhen",
                "country": "CN",
                "streetAddress": "Test sender address"
            }
        },
        "recipient": {
            "name": "Test Recipient",
            "email": "test@test.com",
            "address": {
                "zip": "20000",
                "city": "Test Rec City",
                "county": "Rec county",
                "country": "RO",
                "streetAddress": "Test delivery address"
            },
            "phoneNumber": "1234567678"
        },
        "originator": { "address": { "country": "CN" } },
        "clientRefID": "{{$guid}}",
        "containerId": "ContainerTest1",
        "tpServiceCode": "SD RO|OPS-CC",
        "consignorVatRep": "IM1234567890",
        "customClearanceType": "DDP"
    }
]
headers = {
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript 1. Shipments_2. Add shipment parcels with items for async processing_example
const url = 'https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D';
const credentials = btoa("<username>:<password>");

const options = {
  method: 'POST',
  headers: {
    Authorization: `Basic ${credentials}`,
    'Content-Type': 'application/json'
  },
  body: '[{"items":[{"price":2.8,"hsCode":"3304991000","weight":0.01,"quantity":10,"commodity":"Smartphone cover"}],"price":28,"weight":0.18,"mailType":"NONPOSTAL","parcelID":"{{$guid}}","consignor":{"name":"Test sender","address":{"zip":"0000","city":"Shenzhen","country":"CN","streetAddress":"Test sender address"}},"recipient":{"name":"Test Recipient","email":"test@test.com","address":{"zip":"20000","city":"Test Rec City","county":"Rec county","country":"RO","streetAddress":"Test delivery address"},"phoneNumber":"1234567678"},"originator":{"address":{"country":"CN"}},"clientRefID":"{{$guid}}","containerId":"ContainerTest1","tpServiceCode":"SD RO|OPS-CC","consignorVatRep":"IM1234567890","customClearanceType":"DDP"}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 1. Shipments_2. Add shipment parcels with items for async processing_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D"

	payload := strings.NewReader("[\n  {\n    \"items\": [\n      {\n        \"price\": 2.8,\n        \"hsCode\": \"3304991000\",\n        \"weight\": 0.01,\n        \"quantity\": 10,\n        \"commodity\": \"Smartphone cover\"\n      }\n    ],\n    \"price\": 28,\n    \"weight\": 0.18,\n    \"mailType\": \"NONPOSTAL\",\n    \"parcelID\": \"{{$guid}}\",\n    \"consignor\": {\n      \"name\": \"Test sender\",\n      \"address\": {\n        \"zip\": \"0000\",\n        \"city\": \"Shenzhen\",\n        \"country\": \"CN\",\n        \"streetAddress\": \"Test sender address\"\n      }\n    },\n    \"recipient\": {\n      \"name\": \"Test Recipient\",\n      \"email\": \"test@test.com\",\n      \"address\": {\n        \"zip\": \"20000\",\n        \"city\": \"Test Rec City\",\n        \"county\": \"Rec county\",\n        \"country\": \"RO\",\n        \"streetAddress\": \"Test delivery address\"\n      },\n      \"phoneNumber\": \"1234567678\"\n    },\n    \"originator\": {\n      \"address\": {\n        \"country\": \"CN\"\n      }\n    },\n    \"clientRefID\": \"{{$guid}}\",\n    \"containerId\": \"ContainerTest1\",\n    \"tpServiceCode\": \"SD RO|OPS-CC\",\n    \"consignorVatRep\": \"IM1234567890\",\n    \"customClearanceType\": \"DDP\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.SetBasicAuth("<username>", "<password>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 1. Shipments_2. Add shipment parcels with items for async processing_example
require 'uri'
require 'net/http'

url = URI("https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request.basic_auth("<username>", "<password>")
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"items\": [\n      {\n        \"price\": 2.8,\n        \"hsCode\": \"3304991000\",\n        \"weight\": 0.01,\n        \"quantity\": 10,\n        \"commodity\": \"Smartphone cover\"\n      }\n    ],\n    \"price\": 28,\n    \"weight\": 0.18,\n    \"mailType\": \"NONPOSTAL\",\n    \"parcelID\": \"{{$guid}}\",\n    \"consignor\": {\n      \"name\": \"Test sender\",\n      \"address\": {\n        \"zip\": \"0000\",\n        \"city\": \"Shenzhen\",\n        \"country\": \"CN\",\n        \"streetAddress\": \"Test sender address\"\n      }\n    },\n    \"recipient\": {\n      \"name\": \"Test Recipient\",\n      \"email\": \"test@test.com\",\n      \"address\": {\n        \"zip\": \"20000\",\n        \"city\": \"Test Rec City\",\n        \"county\": \"Rec county\",\n        \"country\": \"RO\",\n        \"streetAddress\": \"Test delivery address\"\n      },\n      \"phoneNumber\": \"1234567678\"\n    },\n    \"originator\": {\n      \"address\": {\n        \"country\": \"CN\"\n      }\n    },\n    \"clientRefID\": \"{{$guid}}\",\n    \"containerId\": \"ContainerTest1\",\n    \"tpServiceCode\": \"SD RO|OPS-CC\",\n    \"consignorVatRep\": \"IM1234567890\",\n    \"customClearanceType\": \"DDP\"\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java 1. Shipments_2. Add shipment parcels with items for async processing_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D")
  .basicAuth("<username>", "<password>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"items\": [\n      {\n        \"price\": 2.8,\n        \"hsCode\": \"3304991000\",\n        \"weight\": 0.01,\n        \"quantity\": 10,\n        \"commodity\": \"Smartphone cover\"\n      }\n    ],\n    \"price\": 28,\n    \"weight\": 0.18,\n    \"mailType\": \"NONPOSTAL\",\n    \"parcelID\": \"{{$guid}}\",\n    \"consignor\": {\n      \"name\": \"Test sender\",\n      \"address\": {\n        \"zip\": \"0000\",\n        \"city\": \"Shenzhen\",\n        \"country\": \"CN\",\n        \"streetAddress\": \"Test sender address\"\n      }\n    },\n    \"recipient\": {\n      \"name\": \"Test Recipient\",\n      \"email\": \"test@test.com\",\n      \"address\": {\n        \"zip\": \"20000\",\n        \"city\": \"Test Rec City\",\n        \"county\": \"Rec county\",\n        \"country\": \"RO\",\n        \"streetAddress\": \"Test delivery address\"\n      },\n      \"phoneNumber\": \"1234567678\"\n    },\n    \"originator\": {\n      \"address\": {\n        \"country\": \"CN\"\n      }\n    },\n    \"clientRefID\": \"{{$guid}}\",\n    \"containerId\": \"ContainerTest1\",\n    \"tpServiceCode\": \"SD RO|OPS-CC\",\n    \"consignorVatRep\": \"IM1234567890\",\n    \"customClearanceType\": \"DDP\"\n  }\n]")
  .asString();
```

```php 1. Shipments_2. Add shipment parcels with items for async processing_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D', [
  'body' => '[
  {
    "items": [
      {
        "price": 2.8,
        "hsCode": "3304991000",
        "weight": 0.01,
        "quantity": 10,
        "commodity": "Smartphone cover"
      }
    ],
    "price": 28,
    "weight": 0.18,
    "mailType": "NONPOSTAL",
    "parcelID": "{{$guid}}",
    "consignor": {
      "name": "Test sender",
      "address": {
        "zip": "0000",
        "city": "Shenzhen",
        "country": "CN",
        "streetAddress": "Test sender address"
      }
    },
    "recipient": {
      "name": "Test Recipient",
      "email": "test@test.com",
      "address": {
        "zip": "20000",
        "city": "Test Rec City",
        "county": "Rec county",
        "country": "RO",
        "streetAddress": "Test delivery address"
      },
      "phoneNumber": "1234567678"
    },
    "originator": {
      "address": {
        "country": "CN"
      }
    },
    "clientRefID": "{{$guid}}",
    "containerId": "ContainerTest1",
    "tpServiceCode": "SD RO|OPS-CC",
    "consignorVatRep": "IM1234567890",
    "customClearanceType": "DDP"
  }
]',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp 1. Shipments_2. Add shipment parcels with items for async processing_example
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.POST);

request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"items\": [\n      {\n        \"price\": 2.8,\n        \"hsCode\": \"3304991000\",\n        \"weight\": 0.01,\n        \"quantity\": 10,\n        \"commodity\": \"Smartphone cover\"\n      }\n    ],\n    \"price\": 28,\n    \"weight\": 0.18,\n    \"mailType\": \"NONPOSTAL\",\n    \"parcelID\": \"{{$guid}}\",\n    \"consignor\": {\n      \"name\": \"Test sender\",\n      \"address\": {\n        \"zip\": \"0000\",\n        \"city\": \"Shenzhen\",\n        \"country\": \"CN\",\n        \"streetAddress\": \"Test sender address\"\n      }\n    },\n    \"recipient\": {\n      \"name\": \"Test Recipient\",\n      \"email\": \"test@test.com\",\n      \"address\": {\n        \"zip\": \"20000\",\n        \"city\": \"Test Rec City\",\n        \"county\": \"Rec county\",\n        \"country\": \"RO\",\n        \"streetAddress\": \"Test delivery address\"\n      },\n      \"phoneNumber\": \"1234567678\"\n    },\n    \"originator\": {\n      \"address\": {\n        \"country\": \"CN\"\n      }\n    },\n    \"clientRefID\": \"{{$guid}}\",\n    \"containerId\": \"ContainerTest1\",\n    \"tpServiceCode\": \"SD RO|OPS-CC\",\n    \"consignorVatRep\": \"IM1234567890\",\n    \"customClearanceType\": \"DDP\"\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 1. Shipments_2. Add shipment parcels with items for async processing_example
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = [
  "Authorization": "Basic \(credentials)",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "items": [
      [
        "price": 2.8,
        "hsCode": "3304991000",
        "weight": 0.01,
        "quantity": 10,
        "commodity": "Smartphone cover"
      ]
    ],
    "price": 28,
    "weight": 0.18,
    "mailType": "NONPOSTAL",
    "parcelID": "{{$guid}}",
    "consignor": [
      "name": "Test sender",
      "address": [
        "zip": "0000",
        "city": "Shenzhen",
        "country": "CN",
        "streetAddress": "Test sender address"
      ]
    ],
    "recipient": [
      "name": "Test Recipient",
      "email": "test@test.com",
      "address": [
        "zip": "20000",
        "city": "Test Rec City",
        "county": "Rec county",
        "country": "RO",
        "streetAddress": "Test delivery address"
      ],
      "phoneNumber": "1234567678"
    ],
    "originator": ["address": ["country": "CN"]],
    "clientRefID": "{{$guid}}",
    "containerId": "ContainerTest1",
    "tpServiceCode": "SD RO|OPS-CC",
    "consignorVatRep": "IM1234567890",
    "customClearanceType": "DDP"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/v1/shipment/123-00000000/parcelsAsync?reqId=%7B%7B%24guid%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```