Pharmacy
Location
Update Location

Update Pharmacy Location

Update pharmacy location details and capabilities.

Overview

  • Method: PUT
  • Path: /pharmacy/location/update-location/<locationId>
  • Tags: pharmacy

Parameters

locationId (path)

  • Type: string
  • Required: Yes
  • Description: locationId parameter

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
namestringNo
phonestringNo
emailstringNoformat: email
timezonestringNo
isActivebooleanNo
capabilitiesbooleanNo
coldChainbooleanNo
shippingMethodsarray&lt;object&gt;Yes
controlledSubstancesbooleanNo

shippingMethods

  • Type: object

Responses

200

Successful response

Content Type: application/json

{
  "message": "string",
  "locationId": "string",
  "updated_at": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X PUT \
  https://api.pillexa.com/pharmacy/location/update-location/<locationId> \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'