List MEDs Endpoint

This endpoint allows listing PIX MED cases for a specific company using cursor-based pagination. It provides filtering capabilities by date range, status, reason, and infraction report status.

Headers

ParameterTypeDescriptionExample
AuthorizationStringBearer + Access_tokenBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzMzAwOTMxLCJpYXQiOjE3MTMyOTczMzEsImp0aSI6Ijc2ZWI4ZTE5ZjM4YjQ4NmZiODdmNzNjNTdkMWVmNDJhIiwidXNlcl9pZCI6MjQ2fQ.5zekMa7CUj9p-MvNHns5ke4ZPhYV3Y1CLOsYL7hDUUo

Params (Query Params)

ParameterTypeDescriptionExample
limitintegerOptional. Number of records per page (Min: 1, Max: 100, Default: 5)limit=20
idstringOptional. Cursor ID for pagination navigationid=med-123-abc
dtstringOptional. Cursor datetime for pagination navigation (ISO 8601 format)dt=2024-01-15T14:30:00
directionstringOptional. Pagination direction: next or previous (Default: next)direction=next

Filter Parameters

ParameterTypeDescriptionExample
filter_start_datedateOptional. Start date for filtering MEDs (YYYY-MM-DD format)filter_start_date=2024-01-01
filter_end_datedateOptional. End date for filtering MEDs (YYYY-MM-DD format)filter_end_date=2024-01-31
statusenumOptional. Filter by MED statusstatus=WAITING
reasonenumOptional. Filter by MED reasonreason=RETURN_REQUEST
infraction_report_statusenumOptional. Filter by infraction report statusinfraction_report_status=OPEN

Filter Enums

MED Status (status)

ValueDescription
WAITINGAwaiting analysis
CANCELLED_BY_USERCancelled by the user
CANCELLED_BY_PSPCancelled by the PSP (Payment Service Provider)
ACCEPTED_BY_USERAccepted by the user
ACCEPTED_BY_PSPAccepted by the PSP
REJECTED_BY_USERRejected by the user
REJECTED_BY_PSPRejected by the PSP

MED Reason (reason)

ValueDescription
RETURN_REQUESTRequest for transaction return
RETURN_CANCELLATIONCancellation of return request

Infraction Report Status (infraction_report_status)

ValueDescription
OPENReport is open for analysis
RECEIVEDReport has been received
CANCELLEDReport has been cancelled
ANALYZEDReport has been analyzed

Important Filter Rules

  1. Date Range Validation: If you provide filter_start_date, you must also provide filter_end_date, and vice versa. Both parameters are required together.
  2. Date Format: Use ISO date format (YYYY-MM-DD) for date parameters.
  3. Timezone Handling: The system converts dates to UTC with a +3 hours offset for Brazilian timezone.

Response Details

{
  "worked": true,
  "next": "string|null",
  "previous": "string|null",
  "results": [
    {
      "pix_med_id": "med-123-abc-def",
      "origin_situation_type": "SCAM_FRAUD",
      "status": "WAITING",
      "amount": 1000.50,
      "user_document": "12345678901",
      "email": "[email protected]",
      "phone": "+5511999999999",
      "analysis_result": null,
      "creator_psp": "12345678",
      "user_name": "João Silva",
      "receiver_document": "98765432000123",
      "receiver_name": "E2",
      "receiver_agency": "0001",
      "receiver_account": "123456",
      "infraction_report_id": "report-456",
      "endtoend": "E1234567820240115143000123",
      "due_date": "2024-01-30T23:59:59",
      "infraction_report_creation_datetime": "2024-01-15T14:30:00",
      "created_at": "2024-01-15T14:30:00"
    }
  ]
}

Response Fields

Main Response

FieldTypeDescription
workedbooleanIndicates if the request was processed successfully
nextstring\nullURL for the next page (null if no more pages)
previousstring\nullURL for the previous page (null if first page)
resultsarrayList of MED records

MED Record Fields

FieldTypeDescription
pix_med_idstringUnique MED identifier
origin_situation_typeenumType of situation that originated the MED
statusenumCurrent status of the MED
amountdecimalTransaction amount involved in the dispute
user_documentstring\nullPayer's document (CPF/CNPJ)
emailstringContact email for the dispute
phonestringContact phone for the dispute
analysis_resultenum\nullResult of analysis (if completed)
creator_pspstringPSP that created the MED
user_namestring\nullPayer's name
receiver_documentstring\nullReceiver's document
receiver_namestring\nullReceiver's name (typically "E2")
receiver_agencystring\nullReceiver's bank agency
receiver_accountstring\nullReceiver's bank account
infraction_report_idstring\nullAssociated infraction report ID
endtoendstringPIX end-to-end transaction identifier
due_datedatetime\nullDue date for MED resolution
infraction_report_creation_datetimedatetime\nullWhen the infraction report was created
created_atdatetimeWhen the MED record was created

Origin Situation Types

ValueDescription
SCAM_FRAUDScam or fraud situation
UNAUTHORIZED_TRANSACTIONUnauthorized transaction
COERCIVE_CRIMETransaction under coercion
FRAUDULENT_ACCESS_AND_AUTHORIZATIONFraudulent access and authorization
OTHEROther type of situation
UNKNOWNUnknown situation type

Analysis Results

ValueDescription
ACCEPTEDMED analysis accepted the dispute
REJECTEDMED analysis rejected the dispute
Language
Click Try It! to start a request and see the response here!