Skip to main content
POST
/
withdrawals
/
{id}
/
cancel
Cancelar saque
curl --request POST \
  --url https://api.sandbox.z2pay.com/withdrawals/{id}/cancel \
  --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 do saque

Body

application/json
reason
string
Minimum string length: 1

Response

Saque cancelado