Export Orders To Csv
Exports orders matching filters and returns CSV content and filename.
Overview
- Method: POST
- Path:
/pharmacy/order/export-orders - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| expand | string | Yes | |
| fields | string | Yes | |
| orderState | string | No | |
| orderSubState | string | No | |
| paymentState | string | No | |
| prescriptionState | string | No | |
| customerId | string | No | format: uuid |
| pharmacyId | string | No | format: uuid |
| clinicianId | string | No | format: uuid |
| assigned | boolean | No | |
| unassigned | boolean | No | |
| unreadMessages | boolean | No | |
| unreadUpdates | boolean | No | |
| includeTags | string | Yes | |
| excludeTags | string | Yes | |
| deleted_at | string | No |
Responses
200
Successful response
Content Type: application/json
{
"csv": "string",
"filename": "string",
"count": 123
}400
Bad Request
Content Type: application/json
{
"error": "string",
"details": [
{}
]
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X POST \
https://api.pillexa.com/pharmacy/order/export-orders \
-H "Content-Type: application/json" \
-d '{"example": "data"}'