Webhooks
MedRejected
Overview
The MedRejected event is sent when the MED analysis is completed and the refund is rejected. This means the amount remains with the beneficiary and any blocked balance is released.
When you receive this event, any previously blocked balance is automatically unblocked. The amount remains with the beneficiary and no debit is performed.
| Field | Value |
|---|---|
event | MedRejected |
| Meaning | Refund denied — amount kept with beneficiary |
| Recommended action | Unblock beneficiary, notify that the amount was kept |
Full Payload
{
"event": "MedRejected",
"medId": 43,
"idSolicitacaoDevolucao": "MED-2026041067890",
"endToEndId": "E98765432202604101530fedcba654321",
"status": "ANALYZED",
"reason": "REFUND_REQUEST",
"cause": null,
"description": "I believed I was making an investment",
"analysisResult": "REJECTED",
"analysisDetails": "Refund rejected by operator - balance unblocked",
"originalTransaction": {
"transactionId": 99012,
"amount": 500.00,
"endToEndId": "E98765432202604101530fedcba654321",
"externalId": "SALE-99012"
},
"blockStatus": "UNBLOCKED",
"blockedAmount": null,
"defenseStatus": "SUBMITTED",
"requestingBank": {
"ispb": "60701190",
"name": "ITAÚ UNIBANCO S.A."
},
"contestedBank": {
"ispb": "13140088",
"name": "ACESSO SOLUÇÕES DE PAGAMENTO"
},
"statusHistory": [
{ "status": "OPEN", "date": "2026-04-08T08:55:00.000Z" },
{ "status": "RECEIVED", "date": "2026-04-08T09:00:00.000Z" },
{ "status": "ANALYZED", "date": "2026-04-13T11:45:00.000Z" }
],
"createdAt": "2026-04-08T09:00:00.000Z",
"updatedAt": "2026-04-13T11:45:00.000Z"
}Relevant fields in this event
| Field | Expected value | Description |
|---|---|---|
status | "ANALYZED" | MED analyzed |
analysisResult | "REJECTED" | Refund denied |
analysisDetails | string | Rationale for rejection |
blockStatus | "UNBLOCKED" | Previously blocked balance was released |
blockedAmount | null | No amount retained |
defenseStatus | "SUBMITTED" | null | Whether a defense was submitted |
statusHistory | array | History of MED status transitions |
statusHistory[].status | string | Status at that moment (same values as status) |
statusHistory[].date | string | Transition date (ISO 8601) |