Create Pharmacy Location
Create a new pharmacy location with address, timezone, and operational capabilities.
Overview
- Method: POST
- Path:
/pharmacy/location/create-location - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| name | string | Yes | minLength: 1 |
| phone | string | No | |
string | No | format: email | |
| timezone | string | Yes | |
| isActive | boolean | Yes | |
| capabilities | boolean | No | |
| coldChain | boolean | No | |
| shippingMethods | array<object> | Yes | |
| controlledSubstances | boolean | No |
shippingMethods
- Type:
object
Responses
200
Successful response
Content Type: application/json
{
"id": "string",
"name": "string",
"phone": "string",
"email": "user@example.com",
"timezone": "string",
"isActive": true,
"capabilities": true,
"coldChain": true,
"shippingMethods": "string",
"controlledSubstances": true
}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/location/create-location \
-H "Content-Type: application/json" \
-d '{"example": "data"}'