Send A Message For An Order
Sends a message and conditionally forwards to Slack for refill intervention.
Overview
- Method: POST
- Path:
/pharmacy/messaging/send-message/<orderId> - Tags: pharmacy
Parameters
orderId (path)
- Type:
string - Required: Yes
- Description: orderId parameter
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| body | string | Yes | |
| sentByID | string | Yes | format: uuid |
| sentByType | object | Yes |
Responses
200
Successful response
Content Type: application/json
{
"success": true
}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/messaging/send-message/<orderId> \
-H "Content-Type: application/json" \
-d '{"example": "data"}'