Skip to main content
POST
Register a MED inbound refund credit

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Obtain token from /v1/login/oauth/access_token endpoint using client credentials (clientId and clientSecret).

Include token in Authorization header: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Token expires after 3600 seconds (1 hour).

Headers

Authorization
string

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

Chave-Idempotencia
string
required

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

Body

application/json
endToEndIdDevolucao
string
required

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

idReqJdPi
string
required

The upstream request id of the credit notification.

pagador
object
required
recebedor
object
required
valor
number<double>
required

Credited refund amount, in reais.

codigoDevolucao
string

Refund reason code (BE08/FR01/MD06/SL02).

dtContabil
string

SPI accounting date.

dtHrLiquidacao
string

SPI settlement instant.

dtHrOp
string

Recebedor-informed original instant (UTC).

endToEndIdOriginal
string

EndToEndId of the original contested payment (32-char).

motivoDevolucao
string

Free-text refund detail.

Response

OK

dtHrCreditoSgct
string
required

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

idCreditoSgct
string
required

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

idReqJdPi
string
required

The upstream request id (echoed).