Developers

Set a user's pharmacy

Save or replace the authenticated user's preferred pharmacy.

PUT/pharmacy/

Save or replace the authenticated user's preferred pharmacy.

Provide the ncpdpId returned by POST /pharmacy/search/. The user must already have firstName, lastName, dateOfBirth, and sex on file. Both authentication credentials are required.

Authorization

HTTPBearer XDoctronicUserID
AuthorizationBearer <token>

In: header

X-Doctronic-User-ID<token>

Doctronic user ID returned as data.id by POST /users/. This value identifies the user in your organization scope; it is not an API token.

In: header

Header Parameters

Idempotency-Key?string

Unique key for safely retrying this mutation for 24 hours. Reuse the same key only with the same request payload.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for setting the pharmacy on file for the authenticated user (upsert).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/pharmacy/" \  -H "Content-Type: application/json" \  -d '{    "ncpdpId": "string"  }'
null