Skip to main content
POST
Resolve an unresolved MED reserve

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

idSolDevolucao
string
required

Identifier of the MED refund request whose reserve is being resolved.

Body

application/json
action
enum<string>
required

ADOPT records a matching pending reserve; NO_RESERVE clears an attempt after reconciliation.

Available options:
ADOPT,
NO_RESERVE
reason
string
required

Reason for the resolution, recorded in the audit trail.

Required string length: 10 - 500
reserveAttemptStartedAt
string<date-time>
required

Start of the reserve attempt as read from the refund.

evidenceReference
string

For NO_RESERVE, written confirmation that no pending posting exists under this refund's aggregate id at any date or in any queue.

Maximum string length: 140
postingId
string

UUID of the pending posting; required for ADOPT and refused for NO_RESERVE.

Response

OK

effStatus
integer<int64>
required

Debit-effectuation FSM code (0=NotStarted, 1=DebitPending, 2=Settled, 3=Failed).

Example:

1

effStatusDescription
string
required

Human-readable eff_status label.

Example:

"DebitPending"

idOperacaoDebito
string
required

The Pending Midaz debit posting id (the reconcile commit/cancel reference).

Example:

"01HXYZ..."

idReqJdPi
string
required

The JDPI /od request id (the debit-poll handle).

Example:

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

refundRequestId
string
required

The effectuated refund-request GUID.

Example:

"d4e5f6a7-b8c9-0123-def4-56789012345a"