Skip to main content
GET
https://api.owem.com.br
/
v4
/
i
/
meds
List MEDs
curl --request GET \
  --url https://api.owem.com.br/v4/i/meds \
  --header 'Authorization: <authorization>'
{
  "requestId": "a111b222-c333-4d44-8e55-f66677788899",
  "success": true,
  "size": 1,
  "pagination": {
    "page": 1,
    "limit": 50,
    "orderBy": "desc",
    "total": 1,
    "totalPages": 1
  },
  "data": [
    {
      "endToEndId": "E123456789202512240000000000001",
      "medId": "med_12345678-abcd-efgh-ijkl-123456789abc",
      "createdInfractionAt": 1766523042000,
      "pspCreatorName": "OTHER PAYMENT INSTITUTION LTD.",
      "payer": {
        "ispb": "12345678",
        "personType": "person",
        "cpfCnpj": "XXX123456XX",
        "name": "JOHN DOE",
        "agency": "0001",
        "accountType": "savings",
        "accountNumber": "123456"
      },
      "details": "Transaction contested by paying user",
      "feeAmount": 0,
      "netAmount": 0,
      "grossAmount": 150.0,
      "transactionCreatedAt": 1766436642000,
      "receiver": {
        "ispb": "87654321",
        "personType": "company",
        "agency": "0001",
        "accountType": "checking",
        "name": "MY COMPANY LTD",
        "cpfCnpj": "XX123456000XXX",
        "accountNumber": "987654321012"
      },
      "userId": "usr_abc123def",
      "status": "under_analysis",
      "defense": {
        "description": "Attached all proof of negotiation with customer",
        "createdAt": 1766609442000,
        "files": ["https://storage.owem.com.br/files/defense-001.pdf"]
      },
      "deadlines": {
        "defenseDeadLine": 1766782086000
      },
      "legalAnalysis": {
        "createdAt": 1766695686000,
        "createdBy": "[email protected]",
        "considerations": "Customer proved product was delivered"
      }
    }
  ]
}

Purpose

Returns the list of MEDs (Special Refund Mechanism) received by the account, with filter and pagination support. MED is a Brazilian Central Bank mechanism that allows refunds in cases of fraud or operational failure.

Authentication

Authorization
string
required
Basic Auth required in format: Basic {Base64(API_KEY:API_SECRET)}

Query Parameters

status
string
Filter by MED status (under_analysis, accepted, rejected, etc.)
startDate
string
Start date (timestamp ms)
endDate
string
End date (timestamp ms)
page
number
default:"1"
Results page
limit
number
default:"50"
Items per page (max 100)

Response

requestId
string
UUID for tracking
success
boolean
Operation status
size
number
Number of returned items
pagination
object
data
array
Array of MEDs
{
  "requestId": "a111b222-c333-4d44-8e55-f66677788899",
  "success": true,
  "size": 1,
  "pagination": {
    "page": 1,
    "limit": 50,
    "orderBy": "desc",
    "total": 1,
    "totalPages": 1
  },
  "data": [
    {
      "endToEndId": "E123456789202512240000000000001",
      "medId": "med_12345678-abcd-efgh-ijkl-123456789abc",
      "createdInfractionAt": 1766523042000,
      "pspCreatorName": "OTHER PAYMENT INSTITUTION LTD.",
      "payer": {
        "ispb": "12345678",
        "personType": "person",
        "cpfCnpj": "XXX123456XX",
        "name": "JOHN DOE",
        "agency": "0001",
        "accountType": "savings",
        "accountNumber": "123456"
      },
      "details": "Transaction contested by paying user",
      "feeAmount": 0,
      "netAmount": 0,
      "grossAmount": 150.0,
      "transactionCreatedAt": 1766436642000,
      "receiver": {
        "ispb": "87654321",
        "personType": "company",
        "agency": "0001",
        "accountType": "checking",
        "name": "MY COMPANY LTD",
        "cpfCnpj": "XX123456000XXX",
        "accountNumber": "987654321012"
      },
      "userId": "usr_abc123def",
      "status": "under_analysis",
      "defense": {
        "description": "Attached all proof of negotiation with customer",
        "createdAt": 1766609442000,
        "files": ["https://storage.owem.com.br/files/defense-001.pdf"]
      },
      "deadlines": {
        "defenseDeadLine": 1766782086000
      },
      "legalAnalysis": {
        "createdAt": 1766695686000,
        "createdBy": "[email protected]",
        "considerations": "Customer proved product was delivered"
      }
    }
  ]
}

Status Codes

HTTPDescription
200List returned
400Invalid parameter
401Invalid credentials
403IP not allowlisted
429Rate limit exceeded
500Internal error

MED Status

StatusDescription
under_analysisMED under analysis
acceptedMED accepted (amount refunded)
rejectedMED rejected (amount kept)
MEDs have a defense deadline. Check the deadlines.defenseDeadLine field and submit your defense before it expires.
Configure a webhook for med:received to be immediately notified when a new MED is received.