Skip to main content
POST
Open a MED refund request

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).

Body

application/json
endToEndId
string
required

EndToEndId of the contested payment (or pacs.004 id for a cancellation motivo).

idempotencyKey
string
required

Business-derived idempotency key (Chave-Idempotencia).

motivo
integer<int64>
required

Refund motivo (0=Falha Operacional, 1=Fraude, 3=Pix Automático).

valorDevolucaoCents
integer<int64>
required

Requested refund amount, in centavos.

detalhes
string

Free-text detail; required when motivo=0 (Falha Operacional).

Response

Accepted

breached
boolean
required

True when the analysis deadline has been reached or passed (computed at read time); false when no deadline is set.

dtHrCriacao
string
required

Upstream creation timestamp (RFC 3339 UTC).

dtHrUltModificacao
string
required

Upstream last-modification timestamp (RFC 3339 UTC) — the poll watermark.

endToEndId
string
required

EndToEndId of the contested payment or devolucao.

idSolDevolucao
string
required

Refund-request GUID (the natural key).

ispbContestado
string
required

ISPB of the contested PSP.

ispbSolicitante
string
required

ISPB of the requesting PSP.

motivo
integer<int64>
required

Refund motivo code (0=Falha Operacional, 1=Fraude, 3=Pix Automático).

motivoDescription
string
required

Human-readable refund motivo label.

status
integer<int64>
required

stSolDevolucao lifecycle code (0=Aberta, 1=Cancelada, 2=Analisada).

statusDescription
string
required

Human-readable stSolDevolucao label.

valorDevolucaoCents
integer<int64>
required

Requested refund amount, in centavos.

analysisDeadline
string

Contestado-side analysis deadline; null for filer-side and terminal requests.

detalhes
string

Free-text detail.

detalhesAnalise
string

Analysis detail.

endToEndIdDevolucao
string

pacs.004/pacs.008 devolucao reference, recorded at analysis.

idRecValores
string

Value-recovery GUID, when from a recovery.

idRelatoInfracao
string

Linked infraction GUID, when fraud.

motivoRejeicao
integer<int64>

Rejection reason (0,1,3,4); present only when the analysis rejected the request.

motivoRejeicaoDescription
string

Human-readable rejection-reason label.

resultadoAnalise
integer<int64>

Refund analysis result (0=Aceita Totalmente, 1=Aceita Parcialmente, 2=Rejeitada); null until analysed.

resultadoAnaliseDescription
string

Human-readable refund analysis-result label.

valorDevolvidoCents
integer<int64>

Amount actually refunded, in centavos; null when absent.