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
consignmentCode
of the consignment. -
Enter the
parcelCode
of 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/json
Get 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
status
of the consignment wasALLOCATED
, generating the paperwork and then printing the label will change thestatus
toREADY TO MANIFEST
. However, if thestatus
of the consignment wasALLOCATED
before the paperwork is generated but the label is not printed, thestatus
will not change. -
If the
status
of a consignment isPRINTED
orREADY TO MANIFEST
before the paperwork is generated, thestatus
will not change.