The operation creates a new Shipment or generate a Shipment Label. Here, Shipment refers to process where an item is packed and shipped from one point (source) to the other (destination) using some carrier service. This operation is also used to generate a return shipment label.
The shipment can be done for both domestic and overseas/International places.
The shipment has been created successfully.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "size": "DOC_4X6",
- "type": "SHIPPING_LABEL",
- "format": "PDF",
- "contentType": "URL",
- "dateOfShipment": "2024-03-20",
- "fromAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Stamford",
- "countryCode": "US",
- "name": "Paul Wright",
- "company": "PB",
- "email": "testuser@gmail.com",
- "phone": "203-555-1213",
- "postalCode": "06905",
- "stateProvince": "CT",
- "inductionPostalCode": "06905",
- "residential": true
}, - "altReturnAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "company": "PB",
- "email": "user@email.com",
- "residential": true,
- "cityTown": "Shelton",
- "countryCode": "US",
- "name": "User Name",
- "phone": "203-555-1213",
- "postalCode": "06484",
- "stateProvince": "CT"
}, - "parcel": {
- "length": 2,
- "width": 1,
- "height": 1,
- "dimUnit": "IN",
- "weightUnit": "OZ",
- "weight": 1
}, - "carrierAccountId": "asas2223",
- "parcelType": "PKG",
- "serviceId": "PM",
- "specialServices": [
- {
- "inputParameters": [
- {
- "name": "INPUT_VALUE",
- "value": "100"
}
], - "specialserviceId": "Ins"
}
], - "shipmentOptions": {
- "addToManifest": true,
- "printCustomMessage": "Print Message 1",
- "receiptOption": "RECEIPT_WITH_INSTRUCTIONS",
- "printDepartment": "department",
- "printInvoiceNumber": "invoicenumber",
- "printPONumber": "ponumber",
- "shipperId": "1234567890",
- "minimalAddressValidation": true
}, - "docTab": {
- "templateName": "1",
- "toAddressName": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "parcelTrackingNumber": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "carrier": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "serviceId": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "dateOfShipment": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "pieceNumber": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "packageTotalCarrierCharge": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "totalCarrierCharge": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "packageWeight": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "totalWeight": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "customField1": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "customField2": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "customField3": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}, - "customField4": {
- "displayName": "TO",
- "value": "Test1",
- "row": 1,
- "column": 1
}
}, - "carrierPayments": [
- {
- "accountNumber": "602684342",
- "countryCode": "US",
- "party": "BILL_THIRD_PARTY",
- "postalCode": "30305",
- "typeOfCharge": "TRANSPORTATION_CHARGES"
}
], - "metadata": [
- {
- "name": "costAccountName",
- "value": "cost account 123"
}
], - "toAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Stamford",
- "countryCode": "US",
- "name": "Paul Wright",
- "phone": "203-555-1213",
- "company": "PB",
- "email": "testuser@gmail.com",
- "postalCode": "06905",
- "stateProvince": "CT",
- "residential": true
}, - "thirdPartyAddress": {
- "addressLine1": "2270 US HIGHWAY 130",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "DAYTON",
- "countryCode": "US",
- "email": "testuser@email.com",
- "name": "Warehouse Manager",
- "phone": "732-443-1007",
- "postalCode": "08810-1411",
- "residential": false,
- "stateProvince": "NJ"
}, - "soldToAddress": {
- "addressLine1": "70 Hanlan RD",
- "addressLine2": "Suite 101",
- "addressLine3": "Near central market",
- "company": "ABC Company",
- "name": "John Doe",
- "phone": "905-555-1234",
- "email": "billing@abccompany.com",
- "residential": false,
- "cityTown": "Woodbridge",
- "stateProvince": "ON",
- "postalCode": "L4L 3P6",
- "countryCode": "CA"
}, - "additionalAddresses": [
- {
- "address": {
- "residential": false,
- "phone": "732-443-1007",
- "countryCode": "US",
- "postalCode": "08810-1411",
- "cityTown": "DAYTON",
- "name": "Warehouse Manager",
- "stateProvince": "NJ",
- "addressLine1": "2270 US HIGHWAY 130"
}, - "addressType": "BROKER"
}
]
}
{- "correlationId": "00adf56ed852487ba9caec62b7ab2635",
- "fromAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Stamford",
- "company": "Pitney Bowes Inc.",
- "countryCode": "US",
- "email": "john.publica@pb.com",
- "name": "Paul Wright",
- "phone": "203-555-1213",
- "postalCode": "06905-4317",
- "residential": false,
- "stateProvince": "CT",
- "inductionPostalCode": "06905"
}, - "altReturnAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "company": "PB",
- "email": "user@email.com",
- "residential": true,
- "cityTown": "Shelton",
- "countryCode": "US",
- "name": "User Name",
- "phone": "203-555-1213",
- "postalCode": "06484",
- "stateProvince": "CT"
}, - "parcel": {
- "length": 2,
- "width": 1,
- "height": 1,
- "dimUnit": "IN",
- "weightUnit": "OZ",
- "weight": 1
}, - "parcelTrackingNumber": "9471309105156000826739",
- "labelLayout": [
- {
- "contentType": "BASE64",
- "contents": "XlhBCl5MSDE2LDEyCl5MTDEyMTIKXkZUIDU4MSwgNDAzIF5BVU4gIF5GRDAwMDNeRlMgXkZYIENvbmZpZ3VyYWJsZSBUZXh0IDEK...",
- "fileFormat": "ZPL2",
- "size": "DOC_8X11",
- "type": "SHIPPING_LABEL"
}
], - "rate": {
- "baseCharge": 25.5,
- "carrier": "USPS",
- "currencyCode": "USD",
- "parcelType": "PKG",
- "rateTypeId": "CONTRACT_RATES",
- "serviceId": "EM",
- "specialServices": [
- {
- "fee": 88.5,
- "inputParameters": [
- {
- "name": "INPUT_VALUE",
- "value": "5000"
}
], - "specialServiceId": "Ins"
}, - {
- "fee": 0,
- "specialServiceId": "PO to Addressee"
}, - {
- "fee": 3.35,
- "inputParameters": [
- {
- "name": "INPUT_VALUE",
- "value": "12345"
}
], - "specialServiceId": "RR"
}, - {
- "fee": 0,
- "specialServiceId": "Sig"
}, - {
- "fee": 0,
- "specialServiceId": "liveanimal"
}
], - "totalCarrierCharge": 117.35,
- "destinationZone": 1
}, - "shipmentId": "USPS2200579677758143",
- "shipmentOptions": {
- "addToManifest": true,
- "printCustomMessage": "Print Message 1",
- "receiptOption": "RECEIPT_WITH_INSTRUCTIONS",
- "printDepartment": "department",
- "printInvoiceNumber": "invoicenumber",
- "printPONumber": "ponumber",
- "shipperId": "1234567890",
- "minimalAddressValidation": true,
- "billingWeight": "128.0"
}, - "carrierPayments": [
- {
- "accountNumber": "602684342",
- "countryCode": "US",
- "party": "BILL_THIRD_PARTY",
- "postalCode": "30305",
- "typeOfCharge": "TRANSPORTATION_CHARGES"
}
], - "toAddress": {
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Rochester",
- "company": "ABC Company",
- "countryCode": "US",
- "email": "rs.canid@gmail.com",
- "name": "Rufous Sirius Canid",
- "phone": "323 555-1212",
- "postalCode": "14609-7418",
- "residential": false,
- "stateProvince": "NY"
}, - "thirdPartyAddress": {
- "addressLine1": "2270 US HIGHWAY 130",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "DAYTON",
- "countryCode": "US",
- "email": "testuser@email.com",
- "name": "08810-1411",
- "residential": false,
- "stateProvince": "NJ",
- "phone": "732-443-1007",
- "postalCode": "string"
}, - "soldToAddress": {
- "addressLine1": "70 Hanlan RD",
- "addressLine2": "Suite 101",
- "addressLine3": "Near central market",
- "company": "ABC Company",
- "name": "John Doe",
- "phone": "905-555-1234",
- "email": "billing@abccompany.com",
- "residential": false,
- "cityTown": "Woodbridge",
- "stateProvince": "ON",
- "postalCode": "L4L 3P6",
- "countryCode": "CA"
}, - "additionalAddresses": [
- {
- "address": {
- "residential": false,
- "phone": "732-443-1007",
- "countryCode": "US",
- "postalCode": "08810-1411",
- "cityTown": "DAYTON",
- "name": "Warehouse Manager",
- "stateProvince": "NJ",
- "addressLine1": "2270 US HIGHWAY 130"
}, - "addressType": "BROKER"
}
]
}