Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X GET https://api.zinndigital.com/v1/refund-requests/{refundRequestId} \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
Returns one refund request in scope, with its policy class, amount and outcome. Requires `billing.view`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
refundRequestId (path) | Uuid | Oo | The refund request's id. |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
order_id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
status | RefundRequestStatus | Oo | A refund request's lifecycle state (docs/05 §4.13). |
policy_class | RefundPolicyClass | Oo | How the refund policy classified a request (captured at request time). |
amount | MoneyAmount | Oo | A money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8). |
to_wallet | boolean | Oo | 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 | Oo | — |
decided_by | string | Oo | — |
decision_note | string | Oo | — |
decided_at | object | Oo | — |
refund_reference | string | Oo | Set once the refund has been issued (its idempotency key). |
created_at | string | Oo | — |
updated_at | string | Oo | — |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 429