This method is used to create draft parcel orders that can be viewed from the open orders page in the dashboard.
| Method | URI | Headers |
|---|---|---|
| POST | parcel-orders |
default |
LBS and KG
length_unit | No | String | By default, length unit is taken from your preferences. However, it can be overwritten using this field. Valid values: IN and CM
package_list [] | Yes | Array | An array containing all the package information
+count | Yes | Integer | Pieces count
+box_type | No | String | Carrier box types for the list please refer to Parcel Box Types
+length | Yes | Float | Length
+width | Yes | Float | Width
+height | Yes | Float | Height
+weight | Yes | Float | Weight
+reference_1 | No | String | Reference that will appear on the label
+reference_2 | No | String | Reference that will appear on the label
+insurance | No | Boolean | Default is false. Setting this to true would require items information
+signature | No | Array | Default is no_signature, other options are adult_signature and signature
+items [] | No | Array | An array containing all items information. Condition: only required on international shipments and shipments with insurance
++quantity | No | Integer | Quantity of the item Condition: only required when items [] is used
++price | No | Float | Price of the item Condition: only required when items [] is used
++country_of_manufacture | No | Float | Where the item is manufactured needs to be a country code please refer to country-codes. Condition: only required when items [] is used
++sku | No | String | SKU. Condition: only required when items [] is used
++hs_code | No | String | HS Tariff Code of item. The HS tariff code is an internationally standardized classification system for traded goods, used to determine tariffs and customs duties. Condition: only required when items [] is used
++description | No | String | A brief description for customs. Condition: only required when items [] is used
++content_type | No* | String | Default is Merchandise, acceptable values are Merchandise, Gift, Documents, Sample. Condition: only required when items [] is used
extra_services [] | No | Array | An array containing all the extra services
+saturday_delivery | No | Boolean | Default is false.
+certified_mail | No | Boolean | Default is false.
+return_receipt | No | Boolean | Default is false.
+return_receipt_electronic | No | Boolean | Default is false.
+restricted_delivery | No | Boolean | Default is false.
customs_details {} | No | Object | Customs details container
+bill_type | No | String | Either DDU or DDP should be selected, default is DDP.
+tax_id_type | No | String | Either VAT, EIN or SSN should be used, default is null.
+tax_id | No | String | Default is null.
+issuer_country | No | String | Default is null.
+aes_itn | No | String | Default is null.{
"from_address": {
"name": "Example Corp",
"attention": "John Doe",
"city": "Los Angeles",
"street_1": "123 S Main St",
"zip": "90012",
"state": "CA",
"country": "US",
"telephone": "9999999999"
},
"to_address": {
"name": "Example Corp",
"attention": "John Doe",
"city": "Flushing",
"street_1": "123 Main St",
"zip": "11354",
"state": "NY",
"country": "US",
"telephone": "9999999999"
},
"package_list": [
{
"length": 5,
"width": 4,
"count": 3,
"weight": 2,
"height": 1,
"insurance": false,
"signature": "no_signature",
"items": [
{
"quantity": 1,
"price": 12.5,
"sku": "SKU",
"hs_code": "620342",
"description": "Fryer",
"content_type": "Merchandise"
}
]
}
]
}
Successful
{
"success": true,
"data": {
"shipment_order_id": 123123123
},
"message": "Parcel Order created"
}
Failed
{
"success": false,
"message": "The given data was invalid.",
"data": {
"to_address.city": [
"The to address.city field is required."
]
}
}