Get a delivery label

In this documents, you wil learn how to get the information needed to download the delivery labels.

Requirements:

  • Have the created deliveryId, trackingNumber or referenceId.


Get base64 of the PDF label

When using the mutation deliveryLabel you will get the value base64 and will also receive it on the text binary form with base64. This method is very slow and must only be used when necessary.

- By Delivery ID

Request:

1 2 3 { deliveryLabel(deliveryId: "71282") }

- By Tracking Number

Request:

1 2 3 { deliveryLabel(trackingNumber: "002376021R000071282") }

Response:

The expected response should be like the shown below.

1 2 3 4 5 { "data": { "deliveryLabel": "data:application/pdf;base64,JVBERi0xLjQKJe+/ve+/ve+/ve+...." } }

Real Label Example: