Skip to content

LabelsResource

Defined in: sdks/trendyol/src/resources/labels.ts:9

Common-label (ortak etiket) endpoints — request and retrieve a combined ZPL shipping label for a cargo tracking number.

new LabelsResource(transport, limiter?): LabelsResource

Defined in: sdks/trendyol/src/resources/labels.ts:12

TrendyolTransport

TokenBucketRateLimiter

LabelsResource

createCommon(cargoTrackingNumber, input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/labels.ts:26

Request a common ZPL label for a cargo tracking number. After this returns, call getCommon() with the same cargoTrackingNumber to retrieve the generated label.

string | number

CreateCommonLabelInput

Promise<unknown>

when format is missing.


getCommon(cargoTrackingNumber): Promise<CommonLabel>

Defined in: sdks/trendyol/src/resources/labels.ts:49

Retrieve the previously-created common label. Trendyol returns { data: [{ label, format }] }; the SDK surfaces the array as labels[] for ergonomic access.

Typically labels.length === 1 per tracking number, but kept as an array to match the wire shape.

string | number

Promise<CommonLabel>

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.