Set a user's pharmacy
Save or replace the authenticated user's preferred pharmacy.
/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 In: header
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
Unique key for safely retrying this mutation for 24 hours. Reuse the same key only with the same request payload.
length <= 255Request 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