Pharmacy
Location
List User Locations

List User Locations

List all pharmacy locations assigned to a user and identify the default.

Overview

  • Method: GET
  • Path: /pharmacy/location/list-user-locations
  • Tags: pharmacy

Parameters

userId (query)

  • Type: string
  • Required: Yes
  • Description: userId query parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "userId": "string",
  "locations": [
    {}
  ],
  "defaultLocationId": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X GET \
  https://api.pillexa.com/pharmacy/location/list-user-locations \
  -H "Content-Type: application/json" \