Create Shipment
Create a new shipment for an order.
Overview
- Method: POST
- Path:
/pharmacy/shipping/create-shipment - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| orderId | string | Yes | |
| shippingMethod | object | Yes | |
| carrier | object | Yes | |
| trackingNumber | string | No | |
| estimatedDelivery | string | No | |
| shippingAddress | string | Yes | |
| lastName | string | Yes | |
| address1 | string | Yes | |
| address2 | string | No | |
| city | string | Yes | |
| state | string | Yes | |
| postalCode | string | Yes | |
| country | string | Yes |
Responses
200
Successful response
Content Type: application/json
{
"shipmentId": "string",
"trackingNumber": "string",
"status": {},
"estimatedDelivery": "string",
"trackingUrl": "string",
"created_at": "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/shipping/create-shipment \
-H "Content-Type: application/json" \
-d '{"example": "data"}'