---
title: "MED received"
method: POST
path: "MED_RECEIVED"
tags: ["Webhooks"]
---

# MED received

`POST MED_RECEIVED` (webhook)

A PIX MED (special refund) was opened by the payer's bank.

The HTTP body is this object exactly — there is no envelope and no `type` field. The event name is delivered in the `X-Webhook-Event` header. Most optional fields arrive as an explicit `null`; a few keys are dropped from the JSON entirely when unset, and those are marked as such below. Read values with a null-safe accessor rather than testing key presence.

## Payload

- object
  - `medId` string, uuid — MED id.
  - `paymentId` string, uuid — Payment id.
  - `providerMedId` string — Provider MED id, when supplied.
  - `amount` number — Disputed amount in BRL.
  - `frozenAmount` number — Amount frozen on your balance in BRL.
  - `shortfall` number — Amount that could not be frozen because of insufficient balance.

## Acknowledgement `200`

Return a 2xx status to acknowledge receipt.

---

[API](https://skmtc.dev/yuvexpay/apis/yuvexpay-api.md) · [All operations](https://skmtc.dev/yuvexpay/apis/yuvexpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yuvexpay/yuvexpay-api/revisions/9d4ba1cc037c/schema)
