This API operation creates a new package in the system and records its associated activity.
Each package requires a unique tracking number to be added successfully. If an attempt is made to add multiple packages using the same tracking number, the API will return an error.
When to use Add Package API?
required | object Details of the package to be added. |
object | |
Array of objects List of images related to the packages. |
Package has been created successfully.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "package": {
- "trackingNumber": "PB7WMALJAWRMJW",
- "assetType": "PACKAGE",
- "damaged": false,
- "timezone": -330,
- "carrier": {
- "carrierId": "FedEx"
}, - "currentStatus": "RECEIVED",
- "customFields": [
- {
- "name": "End User",
- "status": "ACTIVE",
- "customFieldId": "o1axRY2NKxq",
- "value": "string"
}
], - "sender": {
- "contactId": "5f508e6baa797f3c3d092307"
}, - "receiver": {
- "contactId": "5f508e6baa797f3c3d092307"
}, - "givenTo": {
- "contactId": "5f508e6baa797f3c3d092307"
}, - "comment": "User comments",
- "confirmationType": "PHONE",
- "additionalConfirmationType": "SIGNATURE"
}, - "lastActivity": {
- "status": "RECEIVED",
- "location": {
- "inboundSiteId": "zy0a23Bo4Gn0"
}
}, - "images": [
- {
- "imageLevel": "ASSET",
- "imageType": "PHOTO",
- "tempURL": "temp/images/vvrbWY3rRBz",
- "contentType": "image/png"
}
]
}
{- "packageId": "NeLnz9LZ1j4KK5WlEOlyW",
- "trackingNumber": "PB4OZAWWNPBGB",
- "images": [
- {
- "contentType": "image/gif",
- "imageId": "7NNO1R3e1455",
}
]
}