Get shipment labels
GET REST API request that returns download link for shipment label. Fetching is done by the shipment id which is passed in the URL as a variable. In the response, a download link will be returned, and with that link, it is possible to download the shipping label as a .pdf file, which is connected to the supplier shipment.
Request
HTTP Method | GET | |||||
URL | Stage | https://api.stage.ananastest.com/order/api/v1/supplier-integration/shipment/{shipmentId}/labels | ||||
Production | https://api.ananas.rs/order/api/v1/supplier-integration/shipment/{shipmentId}/labels | |||||
HTTP Headers |
|
Response
There is one scenario where the endpoint will return a status of 4xx:
- If shipment, specified in the URL, does not exist, or if it does not belong to the supplier - 404
Response Body:
Download link is a URL (Response body)
JSON
{
"link": "https://ananas-dev1-logistics.s3.eu-central-1.amazonaws.com/consignment/309/9Z0DG-G6ITS-DS-1/9Z0DG-G6ITS-DS-1.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221115T104016Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=AKIA22VGE46BU67P2UMV%2F20221115%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=c0dfc17dabf347d8728bb61ee699f69b5ae1bc8efb5a3dd1be0fb2a670a49df3112",
};