Overpacks
The Overpacks resource allows a user to combine many Shipments into one object for faster clearance with BoxC and Customs. An overpack can be a carton, container, pallet, or bag. Regardless, it must contain an overpack label on the outside. Empty overpacks are routinely purged from the system.
When creating an overpack it's recommended to provide one or more shipment ID, label ID, or tracking numbers in the request. The overpack will inherit the first shipment's (n
) attributes like the entry_point
, service
, terms
, etc. All shipments require identical attributes to be a part of the same overpack. Errors will be returned if the n + 1
shipments do not match the first one. An error message will be present in the shipments
array for each shipment that fails while creating or updating overpacks. Shipments that pass validation will still be added in the same request.
The system will calculate the routing and other applicable carrier logic to determine the physical appearance of the label. Some carriers require custom messaging on the labels while others require a completely different label altogether. The system handles this logic on your behalf.
The overpack(s) must be dropped off at the BoxC collection center indicated by the entry_point
. Some entry points do not require overpacking and the system will prevent you from creating one. Deleting an overpack unassigns all shipments from it.
Actions
GET /overpacks |
Retrieves a paginated list of overpacks |
GET /overpacks/{id} |
Retrieves an overpack |
POST /overpacks |
Creates an overpack |
PUT /overpacks/{id} |
Updates an overpack |
DELETE /overpacks/{id} |
Deletes an overpack |
Properties
carrier |
|
contains_dg |
|
created |
|
entry_point |
String - The drop off location for this overpack. See Entry Points for a list of codes. All shipments must have the same entry point. The system determines the entry point based on the shipments. |
exit_point |
|
external_tracking |
|
height |
|
id |
|
length |
|
locked |
|
manifest_id |
|
service |
|
shipments |
{ "shipments": [ { "id": 1212, "label_id": 781028, "tracking_number": "9274899999999900001785" }, { "id": 1213, "label_id": 781029, "tracking_number": "9274899999999900001793" }, { "id": 1214, "label_id": null, "tracking_number": null } ] } Array - A list of shipments inside this overpack. Clients should use this to add multiple shipments at once. Only one child attribute it required to add the shipment to the overpack. The system will check for matching shipments in the following order: shipments[].id, shipments[].label_id, or shipments[].tracking_number. Only present when getting or setting a single overpack. At least one labelled shipment is needed to determine the routing logic of the overpack.
|
terms |
|
total_shipments |
|
type86 |
|
weight |
|
width |
|
date_start |
The inclusive date to begin the search in YYYY-MM-DD format. Default is 90 days ago. |
date_end |
The inclusive date to end the search in YYYY-MM-DD format. Default is now. |
limit |
The number of results to return. Max: 100. Default: 50. |
order |
The order of the results. Can be "asc" for ascending, or "desc" for descending. Default: desc. |
page |
The page number of the results. Default is 1. |
page_token |
Used for selecting the page after the initial query. |
GET /overpacks
limit=100&order=desc
HTTP/1.1 200 OK
{ "overpacks": [ { "created": "2015-04-15 12:12:15", "entry_point": "SZXI01", "exit_point": "LAX", "height": 30, "id": 100001, "length": 50, "locked": true, "manifest_id": 100292, "service": "BoxC Parcel", "terms": "DDU", "total_shipments": 155, "type86": false, "weight": 40.5, "width": 45 }, { "...": "..." } ], "next_page": "ZGF0ZV9lbmQ9MjAyMy0wNy0yOCZsaW1pdD01MCZvcmRlcj1kZXNjJnBhZ2U9MSZsYXN0X2lkPTExOTUzMDM=" }
type |
The data stream type if you don't want the overpack details. Only pdf is permitted. A label won't be returned unless the overpack contains shipments. |
GET /overpacks/11232
HTTP/1.1 200 OK
{ "overpack": { "carrier": "DHLeC", "contains_dg": true, "created": "2020-02-16 18:22:55", "entry_point": "CVG001", "exit_point": "CVG", "external_tracking": null, "height": 10, "id": 1002685, "length": 10, "locked": false, "manifest_id": null, "service": "BoxC Parcel", "shipments": [ { "id": "171083", "label_id": "845", "tracking_number": "9274890240788200000653" }, { "id": "171086", "label_id": "850", "tracking_number": "9274890240788200000707" } ], "terms": "DDU", "type86": true, "weight": 1.0, "width": 10 } }
GET /overpacks/11232
type=pdf
HTTP/1.1 200 OK
[blob]
POST /overpacks
{ "overpack": { "weight": 8.0, "length": 20, "width": 20, "height": 20, "shipments": [ { "tracking_number": "9274890240788200000653" }, { "tracking_number": "9274890240788200000707" } ] } }
HTTP/1.1 400 Bad Request
{ "overpack": { "contains_dg": false, "created": null, "entry_point": "CVG001", "exit_point": null, "external_tracking": null, "height": 20, "id": null, "length": 20, "locked": false, "manifest_id": null, "service": null, "shipments": [ { "tracking_number": "9274890240788200000653", "id": 171083, "label_id": 845, "error": "Shipments to 'CVG001' don't require an overpack" }, { "tracking_number": "9274890240788200000707", "id": 171086, "label_id": 850, "error": "Shipments must have the same entry point" } ], "terms": null, "type86": false, "weight": 8.0, "width": 20 } }
POST /overpacks
{ "overpack": { "weight": 8.0, "length": 20, "width": 20, "height": 20, "shipments": [ { "tracking_number": "2KNG118400631803007035400000" } ] } }
HTTP/1.1 201 Created
{ "overpack": { "contains_dg": false, "created": "2020-08-26 17:09:35", "entry_point": "LAXI01", "exit_point": "YYZ", "external_tracking": null, "height": 20, "id": 1002703, "length": 20, "locked": false, "manifest_id": null, "service": "BoxC Parcel", "shipments": [ { "tracking_number": "2KNG118400631803007035400000", "id": 1000017, "label_id": 875 } ], "terms": "DDP", "type86": false, "weight": 8.0, "width": 20 } }
PUT /overpacks/1002685
{ "overpack": { "weight": 10.0, "length": 25, "width": 25, "height": 25, "shipments": [ { "tracking_number": "9274890240788200000653" } ] } }
HTTP/1.1 200 OK
{ "overpack": { "carrier": null, "created": "2020-02-16 18:22:55", "contains_dg": true, "entry_point": "SZXI01", "exit_point": "LAX", "external_tracking": null, "height": 25, "id": 1002685, "length": 25, "locked": false, "manifest_id": null, "service": "BoxC Parcel", "shipments": [ { "id": "171083", "label_id": "845", "tracking_number": "9274890240788200000653" }, { "id": "171086", "label_id": "850", "tracking_number": "9274890240788200000707" } ], "terms": "DDU", "type86": false, "weight": 10.0, "width": 25 } }
DELETE /overpacks/11233
HTTP/1.1 200 OK