> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.api.corpx.com/_mcp/server.

# pix.med.review.updated

POST 

Passo da análise de MED pela CorpX: defesa recebida, esclarecimento, decisão, retenção, devolução e encerramento (campo reason)

Enviado a cada passo da **análise da CorpX** sobre uma disputa: defesa recebida, esclarecimento pedido, decisão, retenção e liberação de saldo, bloqueio e liberação da conta, devoluções e encerramento. É o evento que acompanha o `reviewStatus` do [guia de MED](/baas/guias/pagar/med); o `pix.med.updated` segue cobrindo o status do liquidante.

`data` é sempre o **retrato atual** da disputa; `reason` diz o que acabou de acontecer. Não é preciso acumular eventos para saber onde ela está.

**Estrutura do `data`:**
- `medId`, `accountId`: Identificadores da disputa e da conta.
- `reason`: `submitted`, `info_requested`, `decided`, `balance_locked`, `account_blocked`, `balance_unlocked`, `refund_sent`, `refund_completed`, `refund_failed`, `remainder_locked`, `account_unblocked`, `closed`.
- `reviewStatus`: `awaiting_defense`, `pending_review`, `info_requested`, `in_execution`, `awaiting_funds`, `refunded`, `refused`.
- `round`: Rodada de devolução a que o passo pertence (vazio fora da execução).
- `decision`, `decisionMessage`: `accept` ou `refuse` e a justificativa, a partir de `decided`.
- `infoRequest.message`, `infoDueAt`: Pergunta da análise e prazo, em `info_requested`.
- `lockStatus`, `lockedAmount`: Retenção de saldo vigente.
- `refund.amount`, `refund.endToEndId`: A devolução deste evento, em `refund_*`.
- `refundedTotal`, `remaining`, `refundPartial`: Totais da devolução.

Reference: https://docs.api.corpx.com/ib/referencia/webhook-events/webhook-pix-med-review-updated

## Request

### Headers

- `X-Signature` (string, optional) — Present when the subscription uses `authType: HMAC`: `hex(HMAC_SHA256(secret, raw_request_body))` (64 lowercase hex characters). Compare in constant time against your own computation over the raw body.

### Payload

- `id` (string, required) — Deterministic event id. Same `id` means the same event, possibly redelivered — deduplicate on it.
- `type` (enum, required) — Event type. Full list at `GET /v1/webhooks/events`.
  - Allowed values: `pix.med.review.updated`
- `occurredAt` (datetime, required) — RFC 3339, UTC with `Z`.
- `schemaVersion` (string, required) — `1.0` today; bumped only on breaking payload changes.
- `environment` (enum, required) — Environment that emitted the event.
  - Allowed values: `production`, `sandbox`
- `tenantId` (string, required) — Tenant the event belongs to.
- `data` (WebhooksWebhookPixMedReviewUpdatedPayloadContentApplicationJsonSchemaData, required) — Event-specific payload. See each webhook.
- `accountId` (string, optional) — CorpX account where the event happened. Empty on cross-account events.

## Types

### WebhooksWebhookPixMedReviewUpdatedPayloadContentApplicationJsonSchemaData

Event-specific payload. See each webhook.

- `medId` (string, optional)
- `accountId` (string, optional)
- `reason` (string, optional)
- `reviewStatus` (string, optional)
- `round` (integer, optional)
- `decision` (string, optional)
- `decisionMessage` (string, optional)
- `infoRequest` (string, optional, nullable)
- `infoDueAt` (string, optional, nullable)
- `lockStatus` (string, optional)
- `lockedAmount` (integer, optional)
- `refund` (WebhooksWebhookPixMedReviewUpdatedPayloadContentApplicationJsonSchemaDataRefund, optional)
- `refundedTotal` (double, optional)
- `remaining` (integer, optional)
- `refundPartial` (boolean, optional)

### WebhooksWebhookPixMedReviewUpdatedPayloadContentApplicationJsonSchemaDataRefund

- `amount` (double, optional)
- `endToEndId` (string, optional)