ParcelParcelAPI docs

API docs Endpoints

Get the shipping documents (labels)

Markdown

Receive the shipping documentation in a base64 string.

GEThttps://services.parcelparcel.com/partners-api/v1/shipments/{shipmentId}/labels

Example request

Get the labels of shipment 1588448

curl --request GET 'https://services.parcelparcel.com/partners-api/v1/shipments/1588448/labels' \
  --header 'X-PP-API: {YourAPIKey}@{YourAPISecret}' \
  --header 'Content-Type: application/json'

Tip: copy the cURL and paste it in Postman under Import, or straight into the URL bar of a new request. Postman fills in the method, headers and body for you. Replace {YourAPIKey}@{YourAPISecret} with your own API key and secret (use your sandbox key while testing), or import the whole Postman Collection.

This endpoint allows you to get the labels from your shipments.

You need to add the following headers:

NameValue
Content-Typeapplication/json
X-PP-API{YourAPIKey}@{YourAPISecret}

Don't you have an API Key and API Secret yet? Check our Authentication page and how to get them in under a minute.

Body

There is no body needed; you just put the shipmentId in the URL, and you're done. You can retrieve this shipmentId after you've created a shipment through our create shipment endpoint.

For example:

https://services.parcelparcel.com/partners-api/v1/shipments/{shipmentId}/labels

Response

The following response elements are returned:

NameValueComments
labelsbase64The complete shipping documentation of your shipment in base64.

Example Response

JSON
{
  "data": {
    "labels": "=== base64 encoded label ==="
  }
}

Examples

Don't know how to test these requests? Check our guide.

Request example - Get the labels of shipment 1588448

curl --location --request GET 'https://services.parcelparcel.com/partners-api/v1/shipments/1588448/labels' \
--header 'X-PP-API: {YourAPIKey}@{YourAPISecret}' \
--header 'Content-Type: application/json'

Replace 1588448 with the id of your own shipment, and don't forget to change the X-PP-API element in the header.