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<MutationResult>

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

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

Trendyol documents this endpoint (createCommonLabel) as a bare 200 OK with no response body, so the SDK returns a MutationResult whose raw is whatever the gateway sent (normally undefined).

string | number

CreateCommonLabelInput

Promise<MutationResult>

when format is missing.


getCommon(cargoTrackingNumber): Promise<CommonLabel>

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

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.