Fulfill Order
Creates a fulfillment for an order and returns tracking info and label data.
Overview
- Method: POST
- Path:
/pharmacy/order/fulfill-order/<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 |
|---|---|---|---|
| fulfillmentRequest | string | Yes | |
| quantity | integer | Yes | min: 1 |
Responses
200
Successful response
Content Type: application/json
{
"fulfillment": "string",
"id": "string",
"label_uri": "string",
"tracking_number": "string",
"tracking_url": "string",
"shipping_method": "string",
"provider": "string"
}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/fulfill-order/<orderId> \
-H "Content-Type: application/json" \
-d '{"example": "data"}'