Skip to content

ClaimsResource

Defined in: sdks/trendyol/src/resources/claims.ts:52

Trendyol claims (return / iade) endpoints.

Rate limit (per Trendyol service limits): shares the order service bucket; the SDK provisions its own 1000 req/min limiter that the caller can override.

new ClaimsResource(transport, limiter?): ClaimsResource

Defined in: sdks/trendyol/src/resources/claims.ts:55

TrendyolTransport

TokenBucketRateLimiter

ClaimsResource

approveLineItems(claimId, input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/claims.ts:131

Approve specific claim line items. After approval, Trendyol moves those line items into the post-approval refund / return-shipping flow.

string

ApproveClaimLineItemsInput

Promise<unknown>

when claimLineItemIdList is empty.


create(input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/claims.ts:72

Create a return claim against an order. Use this to file a return on behalf of a customer (e.g. when they called your CS line). For customer-initiated returns coming from trendyol.com, you receive them via claims.list() — no need to call create.

Returns whatever Trendyol returns (typically the new claim’s identifier).

CreateClaimInput

Promise<unknown>

when claimItems is empty.


createIssue(claimId, input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/claims.ts:92

File a seller-side rejection (“ret talebi”) against a customer claim.

Wire format: multipart/form-data — the SDK builds the FormData internally from the typed input. claimItemIdList is joined with commas (Trendyol expects a single comma-separated string field). Attach supporting docs (PDF / JPEG) via files: [Blob, ...].

string

CreateClaimIssueInput

Promise<unknown>


getIssueReasons(): Promise<ClaimIssueReason[]>

Defined in: sdks/trendyol/src/resources/claims.ts:196

Fetch the catalog of rejection-reason IDs the seller can use on claims.createIssue(). Cache the result — it changes rarely.

Note: this endpoint is not seller-scoped (no sellerId in path).

Promise<ClaimIssueReason[]>


getItemAudits(claimItemId): Promise<ClaimItemAudit[]>

Defined in: sdks/trendyol/src/resources/claims.ts:214

Fetch the audit log for a single claim item (state transitions, actor, timestamp). Trendyol’s response shape varies — the SDK surfaces each row as { raw } and leaves field extraction to the caller until we observe a stable shape on the wire.

string

Promise<ClaimItemAudit[]>


list(params?): Promise<CursorPage<Claim>>

Defined in: sdks/trendyol/src/resources/claims.ts:158

List claims (page-based; SDK exposes opaque cursor convention).

ListClaimsParams = {}

Promise<CursorPage<Claim>>

import { paginate } from '@lonca/core';
for await (const c of paginate((p) =>
client.claims.list({ ...p, claimItemStatus: 'WaitingInAction' }),
)) {
console.log(c.id, c.orderNumber, c.claimDate);
}

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.