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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClaimsResource(
transport,limiter?):ClaimsResource
Defined in: sdks/hepsiburada/src/resources/claims.ts:78
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<MutationResult>
Defined in: sdks/hepsiburada/src/resources/claims.ts:143
Accept (approve) a customer claim — the portal’s AcceptClaimRequest:
FinalizedWith (Refund / Change), AcceptionReason, InvoiceLink.
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<MutationResult>
create()
Section titled “create()”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).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<MutationResult>
Throws
Section titled “Throws”when input is missing, or when a ClaimList
entry carries no claim number.
list()
Section titled “list()”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.
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: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.
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<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".
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<MutationResult>
reject()
Section titled “reject()”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.
Parameters
Section titled “Parameters”claimNumber
Section titled “claimNumber”string
input?
Section titled “input?”ClaimActionInput = {}
Returns
Section titled “Returns”Promise<MutationResult>
Throws
Section titled “Throws”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.