Pharmacy
Location
Create Location

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

FieldTypeRequiredDetails
namestringYesminLength: 1
phonestringNo
emailstringNoformat: email
timezonestringYes
isActivebooleanYes
capabilitiesbooleanNo
coldChainbooleanNo
shippingMethodsarray<object>Yes
controlledSubstancesbooleanNo

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"}'