commerce

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

Approve a pending refund request (staff).

Sve commerce krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ova krajnja tačka ne navodi specifičnu dozvolu u specifikaciji, zato dodelite svom ključu minimum potrebnih ovlašćenja i proverite odgovor umesto da pretpostavljate.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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.

Parametri

NazivVrstaObaveznoŠta je ovo
refundRequestId (path)UuidDaThe refund request's id.

Telo zahteva

NazivVrstaObaveznoŠta je ovo
notestringNe

Odgovor

NazivVrstaObaveznoŠta je ovo
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusDaA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassDaHow the refund policy classified a request (captured at request time).
amountMoneyAmountDaA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanDaRefund 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…
reasonstringDa
decided_bystringDa
decision_notestringDa
decided_atobjectDa
refund_referencestringDaSet once the refund has been issued (its idempotency key).
created_atstringDa
updated_atstringDa

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 409 · 422 · 429