Get shipping label v2
GET REST API request that returns download link for shipping label. Fetching is done by the reference id (suborder id) and label format (PDF or ZPL, defaults to PDF) which are passed in the URL as a request parameters. In the response, a download link will be returned, and with that link, it is possible to download the shipping label as a ZIP/PDF file, which is connected to the merchant order.
Request
| HTTP Method | GET | |||||||
| URL | Stage | https://api.qa2.ananastest.com/lmd/api/v2/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1?format=ZPL | ||||||
| Production | https://api.ananas.rs/lmd/api/v2/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1?format=ZPL | |||||||
| HTTP Headers |
| |||||||
| URL Parameters |
|
Examples:
https://api.qa2.ananastest.com/lmd/api/v2/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1?format=ZPL
https://api.ananas.rs/lmd/api/v2/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1?format=ZPL
Response
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.zpl?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",
};