Search pharmacies
Search pharmacies by name, with optional proximity or state filtering.
/pharmacy/search/Search pharmacies by name, with optional proximity or state filtering.
Provide latitude and longitude to sort by proximity, or provide state to limit the results. Use the returned ncpdpId when saving a user's preferred pharmacy. This operation requires an organization Bearer token.
Authorization
HTTPBearer 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 searching pharmacies, used to route any prescriptions resulting from an appointment.
latitude/longitude must be supplied together; when provided, results are
sorted/filtered by proximity to that point. state optionally filters results to a
single US state.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/pharmacy/search/" \ -H "Content-Type: application/json" \ -d '{ "searchTerm": "string" }'{ "code": "success", "message": "Request successful", "data": { "pharmacies": [ { "name": "string", "ncpdpId": "string", "address": { "line1": "string", "city": "string", "state": "string", "postalCode": "string" }, "phoneNumber": "string", "distanceMiles": 0 } ] }}