commerce

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

Approve a pending refund request (staff).

Todos os endpoints de commerce

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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.

Parâmetros

NomeTipoObrigatórioO que é
refundRequestId (path)UuidSimThe refund request's id.

Corpo da requisição

NomeTipoObrigatórioO que é
notestringNão

Resposta

NomeTipoObrigatórioO que é
idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusSimA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassSimHow the refund policy classified a request (captured at request time).
amountMoneyAmountSimA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanSimRefund 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…
reasonstringSim
decided_bystringSim
decision_notestringSim
decided_atobjectSim
refund_referencestringSimSet once the refund has been issued (its idempotency key).
created_atstringSim
updated_atstringSim

Erros que este endpoint pode retornar

401 · 403 · 404 · 409 · 422 · 429