Skip to content

List MED

Lists MED (Special Return Mechanism) processes associated with the account.

MED is a Central Bank mechanism for recovering funds in cases of fraud or operational failure in the PIX system.

Endpoint

GET /api/v2/external/med

Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}

Example

bash
curl -X GET https://api.owem.com.br/api/v2/external/med \
  -H "Authorization: Bearer $TOKEN"

Success Response (200)

json
{
  "worked": true,
  "meds": [
    {
      "id": "MED20260307001",
      "type": "FRAUDE",
      "status": "pending",
      "amount": 50000,
      "original_end_to_end_id": "E37839059202603071530000001",
      "created_at": "2026-03-07T18:00:00Z"
    },
    {
      "id": "MED20260305002",
      "type": "FALHA_OPERACIONAL",
      "status": "refunded",
      "amount": 15000,
      "original_end_to_end_id": "E37839059202603051200000003",
      "created_at": "2026-03-05T14:30:00Z"
    }
  ]
}
FieldTypeDescription
workedBooleantrue indicates operation success
medsArrayList of MED processes
meds[].idStringUnique MED identifier
meds[].typeStringMED type (see table below)
meds[].statusStringCurrent process status
meds[].amountIntegerAmount in cents
meds[].original_end_to_end_idStringE2E of the original PIX transaction
meds[].created_atStringOpening date (ISO 8601)

MED Types

TypeDescription
FRAUDESuspected fraud or scam
FALHA_OPERACIONALSystem processing failure

MED Status

StatusDescription
pendingMED under analysis
acceptedMED accepted -- funds blocked in the account
refundedFunds returned to original payer
rejectedMED rejected after analysis
cancelledMED cancelled

Success Response -- No MEDs (200)

json
{
  "worked": true,
  "meds": []
}

Error Response (401)

json
{
  "worked": false,
  "detail": "Invalid or expired token"
}

Funds blocking

When a MED is accepted (accepted), the corresponding amounts are blocked in the account and deducted from the available balance. Track via MED Details and Webhook pix.med.

Owem Pay Instituição de Pagamento — ISPB 37839059