Skip to main content
POST
Register a MED inbound refund credit (THIRD RAIL — moves money)

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

Authorization
string

Bearer access token (the financial-ingress gate; the handler fails closed with PIX-0082 when absent).

Example:

"Bearer eyJ..."

Chave-Idempotencia
string
required

Idempotency key (= the endToEndIdDevolucao). Mandatory per the MED SPI credit contract.

Example:

"D1111111120240918150000000000099"

Body

application/json
endToEndIdDevolucao
string
required

EndToEndId of the devolucao (pacs.004; the natural key / idempotency anchor, 32-char).

Example:

"D1234567820240101000000000000099"

idReqJdPi
string
required

The JDPI request id of the credit notification.

Example:

"f1e2d3c4-b5a6-7890-1234-567890abcdef"

valor
number<double>
required

Credited refund amount, in reais (a JSON number; JDPI 9.3.3).

Example:

150.85

codigoDevolucao
string

Refund reason code (BE08/FR01/MD06/SL02; §9.3.3 Obrg=Sim, tolerated-absent).

Example:

"BE08"

dtContabil
string

SPI accounting date (§9.3.3, Obrg=Sim, aaaa-mm-dd).

Example:

"2024-09-20"

dtHrLiquidacao
string

SPI settlement instant (§9.3.3, Obrg=Sim, UTC).

Example:

"2024-09-20T04:00:01.001Z"

dtHrOp
string

Recebedor-informed original instant (UTC).

Example:

"2024-09-20T04:00:01.001Z"

endToEndIdOriginal
string

EndToEndId of the original contested payment (32-char; §9.3.3 Obrg=Sim, tolerated-absent).

Example:

"E1234567820240101000000000000001"

infEntreClientes
string

Payer-to-payee free-text information (§9.3.3, Obrg=Nao).

Example:

"Compra Paga"

motivoDevolucao
string

Free-text refund detail.

Example:

"Devolucao MED."

pagador
object

Payer (pagador) identity; retained for audit/observability.

recebedor
object

Recipient (recebedor) identity; the credit distribute leg target (design D2 mirror). recebedor.ispb is enforced by Validate().

Response

OK

dtHrCreditoSgct
string
required

The SGCT credit-commit instant (UTC, RFC 3339).

Example:

"2024-09-20T04:00:01.001Z"

idCreditoSgct
string
required

The plugin-minted credit-entry id (GUID).

Example:

"58F752C5-6376-3252-8305-A2DE3A8525D3"

idReqJdPi
string
required

The JDPI request id (echoed).

Example:

"f1e2d3c4-b5a6-7890-1234-567890abcdef"