ClaimsResource
Defined in: sdks/hepsiburada/src/resources/claims.ts:58
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 — the SDK passes them through
as Record<string, unknown> so future field additions don’t break callers.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClaimsResource(
transport,limiter?):ClaimsResource
Defined in: sdks/hepsiburada/src/resources/claims.ts:61
Parameters
Section titled “Parameters”transport
Section titled “transport”HepsiburadaTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”ClaimsResource
Methods
Section titled “Methods”accept()
Section titled “accept()”accept(
claimNumber,input?):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/claims.ts:122
Accept (approve) a customer claim. Hepsiburada expects a body —
pass the documented c payload via input.
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<unknown>
create()
Section titled “create()”create(
input):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/claims.ts:172
Create a new claim against an order. Routes to the claim-stub
backend service.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
list()
Section titled “list()”list(
params?):Promise<Claim[]>
Defined in: sdks/hepsiburada/src/resources/claims.ts:69
List all claims (date-range / pagination filters optional).
Parameters
Section titled “Parameters”params?
Section titled “params?”ListClaimsParams = {}
Returns
Section titled “Returns”Promise<Claim[]>
listByStatus()
Section titled “listByStatus()”listByStatus(
status,params?):Promise<Claim[]>
Defined in: sdks/hepsiburada/src/resources/claims.ts:96
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.
Parameters
Section titled “Parameters”status
Section titled “status”params?
Section titled “params?”Returns
Section titled “Returns”Promise<Claim[]>
Throws
Section titled “Throws”when status is empty.
preApprovalConfirm()
Section titled “preApprovalConfirm()”preApprovalConfirm(
claimNumber,input?):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/claims.ts:153
Confirm a “pre-approval” — a Hepsiburada-specific second-step approval flow for certain claim categories.
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<unknown>
reject()
Section titled “reject()”reject(
claimNumber,input?):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/claims.ts:136
Reject a customer claim.
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<unknown>
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.