Skip to content

ClaimsResource

Defined in: sdks/hepsiburada/src/resources/claims.ts:75

Hepsiburada Claims (Talep) — list, status-based filtering, and accept/reject/preApproval actions plus claim creation.

Two backend services back this surface (the SDK routes automatically; callers don’t pick):

  • List + actions: oms-external[-sit].hepsiburada.com (talep-listeleme)
  • Create: claim-stub-external[-sit].hepsiburada.com (talep-olusturma)

Body shapes for accept, reject, preApprovalConfirm, and create are documented on the developer portal (talep-listeleme, talep-olusturma) and typed as hints on ClaimActionInput / CreateClaimInput; the SDK passes them through so future field additions don’t break callers.

new ClaimsResource(transport, limiter?): ClaimsResource

Defined in: sdks/hepsiburada/src/resources/claims.ts:78

HepsiburadaTransport

TokenBucketRateLimiter

ClaimsResource

accept(claimNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/claims.ts:143

Accept (approve) a customer claim — the portal’s AcceptClaimRequest: FinalizedWith (Refund / Change), AcceptionReason, InvoiceLink.

string

ClaimActionInput = {}

Promise<MutationResult>


create(input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/claims.ts:230

Create a claim on an order — a test-environment helper (claim-stub service) taking the portal’s CreateClaim body ({ orderNumber, type, reason, newSKU }).

Hepsiburada answers a failed create with 200 and puts the failure text where the claim number belongs ({ ClaimList: [{ claimNumber: "Claim oluşturulamadı.", type: "" }] }, SIT 2026-10-27); the SDK throws that as a ValidationError (status 200, the body on error.data.body).

CreateClaimInput

Promise<MutationResult>

when input is missing, or when a ClaimList entry carries no claim number.


list(params?): Promise<Claim[]>

Defined in: sdks/hepsiburada/src/resources/claims.ts:90

List all claims. Date-range filters are optional; offset/limit default to 0/100 because Hepsiburada rejects a missing limit (400 "LimitCannotBeEmpty"). Pass your own to paginate.

ListClaimsParams = {}

Promise<Claim[]>


listByStatus(status, params?): Promise<Claim[]>

Defined in: sdks/hepsiburada/src/resources/claims.ts:117

List claims filtered to a specific status.

Allowed values (per the published OpenAPI spec, verified live): NewRequest | Accepted | AwaitingAction | InDispute | Rejected | Refunded | Cancelled | AwaitingPreApproval. Any other value returns 400 "Wrong Claim Status" from Hepsiburada.

ClaimStatus

ListClaimsByStatusParams = {}

Promise<Claim[]>

when status is empty.


preApprovalConfirm(claimNumber, input?): Promise<MutationResult>

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

Confirm an AwaitingPreApproval claim with “send the product to me, I will inspect it” — the portal’s PreApprovalConfirmRequest ({ preApprovalReason: 'ProductInvestigation' }, the only accepted value). The SDK sends that reason when input carries none, so preApprovalConfirm(claimNumber) is enough. A claim in another status is refused with 400 "Claim is not in AwaitingPreApproval status".

string

ClaimActionInput = {}

Promise<MutationResult>


reject(claimNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/claims.ts:167

Reject a customer claim (the claim goes to InDispute) — the portal’s RejectClaimRequest: ClaimRejectionReason (a value from Hepsiburada’s list, see ClaimActionInput), MerchantStatement, Reports, UploadedReportsUrls. Send at least the reason and the statement.

string

ClaimActionInput = {}

Promise<MutationResult>

when claimNumber is missing or input is empty (Hepsiburada refuses an empty body with a bare 400).

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.