Saltar al contenido principal
POST
Create an outbound Pix refund (MED)

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

REQUIRED. Client-supplied replay key, at most 64 bytes. A request without it is refused with PIX-0030 @ 400 before the handler runs. An identical resend within 1 hour returns the original response, status included, with X-Idempotency-Replayed: true. Reusing the key with a divergent method, URL or body is PIX-0031 @ 412.

Required string length: 1 - 64
X-Account-Id
string
requerido

Account UUID

Ejemplo:

"019606a1-3b4c-7d8e-9f01-234567890abc"

Parámetros de ruta

id
string
requerido

Original transfer UUID

Ejemplo:

"0196070b-1234-7890-abcd-ef0123456789"

Cuerpo

application/json
amount
string
requerido

Refund amount

Ejemplo:

"100.00"

reason
string
requerido

Human-readable refund reason, sent in the pacs.004. U+0000 is refused (400 PIX-0010); U+FFFE, U+FFFF or U+0001-U+001F other than tab, line feed or carriage return is refused (400 PIX-0003).

Ejemplo:

"Estorno solicitado pelo pagador"

reasonCode
enum<string>
requerido

pacs.004 RtrRsnInf reason code

Opciones disponibles:
MD06,
SL02,
FR01,
BE08
Ejemplo:

"MD06"

Respuesta

Created

amount
string
requerido
Ejemplo:

"100.00"

createdAt
string<date-time>
requerido
Ejemplo:

"2026-05-06T10:45:00Z"

id
string
requerido
Ejemplo:

"019606b1-3b4c-7d8e-9f01-234567890dee"

originalEndToEndId
string
requerido
Ejemplo:

"E12345678202605061030abcdef12345"

reasonCode
string
requerido
Ejemplo:

"MD06"

status
string
requerido
Ejemplo:

"COMPLETED"

type
string
requerido
Ejemplo:

"OUTBOUND"

updatedAt
string<date-time>
requerido
Ejemplo:

"2026-05-06T10:45:30Z"

accountId
string
Ejemplo:

"019606a0-1a2b-7c3d-8e4f-567890123abc"

deletedAt
string<date-time>
description
string
Ejemplo:

"Estorno solicitado pelo pagador"

ledger
object
metadata
object
returnEndToEndId
string
Ejemplo:

"D12345678202605061045fedcba54321"

feeCharge
object

Fee the ledger reported on the create that moved the refund's money. Absent when no fee answer was recorded for this refund (its ledger create never landed, an error was logged at the time, or the refund was created before fees were read back); {"applied": false} when the ledger reported that no fee was charged; the full object when it charged one. A refund carries no ledger.revert field and needs none here: a FAILED refund that carries feeCharge was reverted first -- every path that writes a refund FAILED after its ledger create landed reverts the debit before marking it (a revert that does not complete leaves the refund PROCESSING), and every other path fails before any create -- so the fee was returned with the amount; applied reports what the create did and the object records the create.