Send Prescription
Send a prescription related to an order to an external pharmacy or system
Overview
- Method: POST
- Path:
/pharmacy/prescriptions/prescriptions/send - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| orderId | string | Yes | minLength: 1, maxLength: 200 |
| documents | array<object> | Yes | |
| externalPharmacyUrl | string | No | |
| externalPharmacyApiKey | string | Yes |
documents
- Type:
object
Responses
200
Successful response
Content Type: application/json
{
"success": true,
"message": "string",
"orderId": "string",
"prescriptionId": "string",
"documents": [
{}
],
"sentAt": "string"
}400
Bad Request
Content Type: application/json
{}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X POST \
https://api.pillexa.com/pharmacy/prescriptions/prescriptions/send \
-H "Content-Type: application/json" \
-d '{"example": "data"}'