commerce
POST /v1/refund-requests/{refundRequestId}/reject
Reject a pending refund request (staff).
Pengesahan
Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran billing.refund; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.
Titik akhir ini tidak memerlukan id organisasi. Kunci anda telah mengenal pasti organisasi kepunyaannya, dan respons dis skopkan kepadanya.
Cuba
Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.
curl -X POST https://api.zinndigital.com/v1/refund-requests/{refundRequestId}/reject \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API
Butiran
Declines a pending refund request; no money moves. Staff-only — requires `billing.refund`.
Parameter
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
refundRequestId (path) | Uuid | Ya | The refund request's id. |
Badan permintaan
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
note | string | Tidak | — |
Respons
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
id | Uuid | Ya | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Ya | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
order_id | Uuid | Ya | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
status | RefundRequestStatus | Ya | A refund request's lifecycle state (docs/05 §4.13). |
policy_class | RefundPolicyClass | Ya | How the refund policy classified a request (captured at request time). |
amount | MoneyAmount | Ya | A money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8). |
to_wallet | boolean | Ya | Refund 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… |
reason | string | Ya | — |
decided_by | string | Ya | — |
decision_note | string | Ya | — |
decided_at | object | Ya | — |
refund_reference | string | Ya | Set once the refund has been issued (its idempotency key). |
created_at | string | Ya | — |
updated_at | string | Ya | — |
Ralat yang boleh dikembalikan oleh titik akhir ini
401 · 403 · 404 · 409 · 429