Getting Created Common Label (getCommonLabel)

Getting The Created Common Label

The common label process can be used for TEX, Aras Kargo and UPS by supplier paid cargo model.

Endpoint and response will change as of May 1st. Until this date, the existing and new endpoint will be active. As of May 1st, the old endpoint will be invalid.

With this service, you can get the value in the format you created the barcode request.

  • GET getCommonLabel

Old Endpoint: https://api.trendyol.com/sapigw/suppliers/{supplierId}/common-label/{cargoTrackingNumber} (It is active, will be removed on May 1, 2021)

  • Sample Service Response

{
  "format": "ZPL",
  "label": "string"
}

New Endpoint: https://api.trendyol.com/sapigw/suppliers/{supplierId}/common-label/v2/{cargoTrackingNumber} (It is active)

With the new endpoint, you will receive more than one label for multiple boxes. In the case of a single parcel, one ZPL will return.

  • Sample Service Response
{
    "labels": [{
        "label": "ZPL label string",
        "format": "ZPL"
    }, {
        "label": "ZPL label string",
        "format": "ZPL"
    }]
}