commerce

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

Reject a pending refund request (staff).

Све commerce крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.refund; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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

Параметри

НазивТипОбавезноШта је ово
refundRequestId (path)UuidДаThe refund request's id.

Тело захтева

НазивТипОбавезноШта је ово
notestringНе—

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusДаA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassДаHow the refund policy classified a request (captured at request time).
amountMoneyAmountДаA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanДа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…
reasonstringДа—
decided_bystringДа—
decision_notestringДа—
decided_atobjectДа—
refund_referencestringДаSet once the refund has been issued (its idempotency key).
created_atstringДа—
updated_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 409 · 429