Skip to content

MED Details

Queries the complete details of a specific MED (Special Return Mechanism) process.

Endpoint

GET /api/v2/external/med/:id

Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}

Path Parameters

ParameterTypeRequiredDescription
idStringYesMED process identifier

Example

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

Success Response (200)

json
{
  "worked": true,
  "med": {
    "id": "MED20260307001",
    "type": "FRAUDE",
    "status": "accepted",
    "amount": 50000,
    "original_end_to_end_id": "E37839059202603071530000001",
    "original_transaction_id": "PIXIN20260307a1b2c3d4e5f6",
    "requester_ispb": "12345678",
    "reason": "Fraud reported by payer",
    "created_at": "2026-03-07T18:00:00Z",
    "tracking": {
      "notification_received": "2026-03-07T18:00:00Z",
      "funds_blocked": "2026-03-07T18:00:05Z",
      "analysis_completed": null,
      "refund_completed": null
    }
  }
}
FieldTypeDescription
workedBooleantrue indicates operation success
med.idStringUnique MED identifier
med.typeStringType: FRAUDE or FALHA_OPERACIONAL
med.statusStringCurrent process status
med.amountIntegerAmount in cents
med.original_end_to_end_idStringE2E of the original PIX transaction
med.original_transaction_idStringOriginal PIX transaction ID
med.requester_ispbStringRequesting institution ISPB
med.reasonStringReason provided by the requester
med.created_atStringOpening date (ISO 8601)
med.trackingObjectProcess stage history

Tracking fields

FieldTypeDescription
notification_receivedStringDate the MED notification was received
funds_blockedStringDate funds were blocked (null if not blocked)
analysis_completedStringDate analysis was completed (null if pending)
refund_completedStringDate funds were returned (null if not refunded)

Error Response (404)

json
{
  "worked": false,
  "detail": "MED not found"
}

Error Response (401)

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

Tracking

Use Webhooks with the pix.med event to be notified about MED status changes in real time.

Owem Pay Instituição de Pagamento — ISPB 37839059