Skip to main content
POST
/
transactions
/
{id}
/
refund
Estornar transação
curl --request POST \
  --url https://api.sandbox.z2pay.com/transactions/{id}/refund \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "reason": "<string>"
}
'

Authorizations

x-api-key
string
header
required

API Key da Credential (gerada no Backoffice)

Headers

Idempotency-Key
string

Chave única para garantir idempotência da requisição

Path Parameters

id
string
required

ID da transação

Body

application/json
reason
string
required
Required string length: 1 - 4000

Response

Refunds criados e processados