Saltar al contenido principal
POST
/
transactions
/
{transactionId}
/
payments
/
{paymentId}
/
refund
Estornar payment
curl --request POST \
  --url https://api.sandbox.z2pay.com/transactions/{transactionId}/payments/{paymentId}/refund \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "reason": "<string>",
  "amount": 1
}
'

Autorizaciones

x-api-key
string
header
requerido

API Key da Credential (gerada no Backoffice)

Encabezados

Idempotency-Key
string

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

Parámetros de ruta

paymentId
string
requerido

ID do payment

transactionId
string
requerido

ID da transação

Cuerpo

application/json
reason
string
requerido
Required string length: 1 - 4000
amount
integer
Rango requerido: x >= 0

Respuesta

Refund criado e processado