commerce

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

Approve a pending refund request (staff).

Dukkan commerce wuraren ƙarshe

Tabbatar da Asali

Aiko da maɓallin API a matsayin bearer token. Wannan ma'anar ba ta bayyana takamaiman izini ba a cikin ƙayyadaddun bayanai, don haka ba wa maɓallin ku mafi ƙarancin abin da yake buƙata kuma ku bincika amsar maimakon yin zato.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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.

Sigogi

SunaNau'iAna buƙataAbin da yake
refundRequestId (path)UuidEhThe refund request's id.

Jikin buƙata

SunaNau'iAna buƙataAbin da yake
notestringA'a

Martani

SunaNau'iAna buƙataAbin da yake
idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusEhA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassEhHow the refund policy classified a request (captured at request time).
amountMoneyAmountEhA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanEhRefund 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…
reasonstringEh
decided_bystringEh
decision_notestringEh
decided_atobjectEh
refund_referencestringEhSet once the refund has been issued (its idempotency key).
created_atstringEh
updated_atstringEh

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 404 · 409 · 422 · 429