Get the paperwork of a parcel
If your OMS or WMS operates on carton values instead of consignment codes, you generate labels and customs documentation for a parcel instead of a consignment.
Get parcel paperwork request
You need the following to make a get parcel paperwork request.
| Parameter |
Value |
Description |
|---|---|---|
status |
ALLOCATED orPRINTED orREADY TO MANIFEST |
The consignment lifecycle status. |
consignmentCode |
The consignment identifier generated by Metapack when a consignment is created. | |
parcelCode |
The barcode of the parcel. |
Using the Get parcel paperwork operation, complete the following steps:
-
Enter the
consignmentCodeof the consignment. -
Enter the
parcelCodeof the parcel for which you want to generate paperwork. - Use the query parameters to specify the desired paperwork type and format.
Example request
GET /shipping/v1/consignments/{consignmentCode}/parcels/{parcelCode}/paperwork?type=all&dimension=6x4&format=pdf HTTP/1.1
Host: api.metapack.com
API-Key: Basic Base64-encoded <username>:<password>
Content-Type: application/jsonGet parcel paperwork response
200 (OK)
A successful response will include one or more paperwork strings, which are used to generate the specified paperwork.
A successful response means the following:
-
If the
statusof the consignment wasALLOCATED, generating the paperwork and then printing the label will change thestatustoREADY TO MANIFEST. However, if thestatusof the consignment wasALLOCATEDbefore the paperwork is generated but the label is not printed, thestatuswill not change. -
If the
statusof a consignment isPRINTEDorREADY TO MANIFESTbefore the paperwork is generated, thestatuswill not change.