commerce

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

Reject a pending refund request (staff).

Lahat ng commerce endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.refund; 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 POST https://api.zinndigital.com/v1/refund-requests/{refundRequestId}/reject \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

Declines a pending refund request; no money moves. Staff-only — requires `billing.refund`.

Mga Parameter

PangalanUriKailanganAno ito
refundRequestId (path)UuidOoThe refund request's id.

Katawan ng kahilingan

PangalanUriKailanganAno ito
notestringHindi

Tugon

PangalanUriKailanganAno ito
idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusOoA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassOoHow the refund policy classified a request (captured at request time).
amountMoneyAmountOoA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanOoRefund 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…
reasonstringOo
decided_bystringOo
decision_notestringOo
decided_atobjectOo
refund_referencestringOoSet once the refund has been issued (its idempotency key).
created_atstringOo
updated_atstringOo

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 409 · 429