Multipiece Shipment
How to create a multipiece shipment
To create a multipiece shipment, refer to the sample request below
curl --location 'https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/multipiece/shipments' \
--header 'Content-Type: application/json' \
--header 'X-PB-Developer-Partner-ID: <DeveloperPartnerId>' \
--header 'Authorization: Bearer XXXX' \
--data '{
"size": "DOC_4X6",
"type": "SHIPPING_LABEL",
"fromAddress": {
"addressLine1": "27 Waterview Dr",
"addressLine2": "near abc street",
"addressLine3": "near xyz street",
"cityTown": "Stamford",
"countryCode": "US",
"name": "Paul Wright",
"phone": "203-555-1213",
"postalCode": "06905",
"stateProvince": "CT"
},
"carrierAccountId": "xxxx",
"serviceId": "NDA",
"shipmentOptions": {
"printCustomMessage": "custom message"
},
"metadata": [
{
"name": "costAccountName",
"value": "cost account 123"
}
],
"multiPieceParcels": [
{
"parcelType": "PKG",
"parcel": {
"weight": 10,
"weightUnit": "OZ",
"width": 10,
"length": 10,
"height": 10,
"dimUnit": "IN"
}
},
{
"parcelType": "PKG",
"parcel": {
"weight": 8,
"weightUnit": "OZ",
"width": 8,
"length": 8,
"height": 8,
"dimUnit": "IN"
}
}
],
"toAddress": {
"addressLine1": "27 Watervw Dr",
"addressLine2": "near abc street",
"addressLine3": "near xyz street",
"cityTown": "Stamford",
"countryCode": "US",
"name": "Paul Wright",
"phone": "203-555-1213",
"postalCode": "06905",
"stateProvince": "CT"
}
}'