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.
Filter MEDs by Date Range GET /v3/meds/?filter_start_date=2024-01-01&filter_end_date=2024-01-31&limit=20
Filter by Status and Reason GET /v3/meds/?status=WAITING&reason=RETURN_REQUEST&limit=15
Navigate to Next Page GET /v3/meds/?limit=10&id=med-123-abc&dt=2024-01-15T14:30:00&direction=next
Navigate to Previous Page GET /v3/meds/?limit=10&id=med-456-def&dt=2024-01-14T10:00:00&direction=previous
Get MED Details GET /v3/meds/med-123-abc-def
Complex Filter Example GET /v3/meds/?filter_start_date=2024-01-01&filter_end_date=2024-01-31&status=WAITING&infraction_report_status=OPEN&limit=25
Cursor Pagination
How It Works
The API uses cursor-based pagination, which is more efficient and consistent than offset-based pagination, especially for large datasets that may change during navigation.
Navigation Process
First Request: Don't include id, dt, or direction parameters
Next Page: Use the URL provided in the next field
Previous Page: Use the URL provided in the previous field
Cursor Parameters
id: The MED ID of the cursor position
dt: The datetime of the cursor position (ISO 8601 format)
direction: Either next or previous
Ordering
Results are ordered by infraction_report_creation_datetime in descending order (most recent first), with id as a secondary sort for consistency.
Ordering
Results are ordered by infraction_report_creation_datetime in descending order (most recent first), with id as a secondary sort for consistency.
Language
Click Try It! to start a request and see the response here!