commerce

POST /v1/refund-requests/{refundRequestId}/approve

Approve a pending refund request (staff).

Dhammaan commerce bixiyayaasha

Xaqiijinta aqoonsiga

U dir fure API ahaan calaamad muujisa (bearer token). Barta dhammaadka ee kani ma caysino luqad ahaan oggolaansho gaar ah oo ku dhex jirta qeexidda, markaa sii furahaaga inta ugu yar ee uu u baahan yahay oo fiiri jawaabta halka aad wax ka qaadan lahayd.

Boggan ma qaato aqoonsiga ururka. Furahaagu wuxuu horay u aqoonsanayaa ururka uu ka tirsan yahay, jawaabtuna waxay ku kooban tahay halkaas.

Isku day

Ku beddel wax kasta oo ku dhex jira qeebaha xaglaha ah qiimayaashaada, sidoo kalena haystaaha furaha ku beddel fure ka dhex muuqda dashboordigaaga.

curl -X POST https://api.zinndigital.com/v1/refund-requests/{refundRequestId}/approve \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Ma sign-garaysay? Qalabka API ee ku jira dashboard-kaagu wuxuu buuxiyaa aqoonsigaaga ururka ee dhabta ah iyo furahaaga gaarka ah, wuxuuna ku shaqeysiiyaa codsiga API-ga nool si aad u aragto jawaabta dhabta ah. Kani ka fur barta kontoroolka ee API

Faahfaahin

Approves a pending (pro-rata / goodwill) refund request and issues the refund. Staff-only — requires the `billing.refund` permission held by a staff role, not by any customer role.

Cabiraha

MagacaNoocLoo baahan yahayMaxay tahay
refundRequestId (path)UuidHaaThe refund request's id.

Codsiga jidhkiisa

MagacaNoocLoo baahan yahayMaxay tahay
notestringMaya

Jawaab

MagacaNoocLoo baahan yahayMaxay tahay
idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusHaaA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassHaaHow the refund policy classified a request (captured at request time).
amountMoneyAmountHaaA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanHaaRefund destination, frozen at request time — `false` (the default) reverses the original payment, `true` credits the account wallet. Any part of the order that was settled from…
reasonstringHaa
decided_bystringHaa
decision_notestringHaa
decided_atobjectHaa
refund_referencestringHaaSet once the refund has been issued (its idempotency key).
created_atstringHaa
updated_atstringHaa

Cilladaha ay bartaani soo celin karto

401 · 403 · 404 · 409 · 422 · 429