Get shipping label

GET REST API request that returns download link for shipping label. Fetching is done by the reference id (suborder id) which is passed in the URL as a request parameter. In the response, a download link will be returned, and with that link, it is possible to download the shipping label as a .zip file, which is connected to the merchant order.

Request

HTTP MethodGET
URLStagehttps://api.stage.ananastest.com/lmd/api/v1/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1
Productionhttps://api.ananas.rs/lmd/api/v1/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}
URL Parameters
Parameter nameParameter description
referenceIdReferes to suborderId

Examples:

https://api.stage.ananastest.com/lmd/api/v1/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1

https://api.ananas.rs/lmd/api/v1/merchant-integration/consignment/labels?reference=9Z0DG-G6ITS-DS-1

Response

Download link is a URL (Response body)

JSON

Click to copy
Success!
{
  "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",
};
Copyright © Ananas 2023. All right reserved.