Search pharmacies in the credential's group(s)
curl --request GET \
--url https://sandbox-api.instockrx.com/pharmacies \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/pharmacies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/pharmacies"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nationalProviderIdentifier": "1234567890",
"doingBusinessAs": "<string>",
"contactEmail": "jsmith@example.com",
"contactPhone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bankingStatus": "active",
"isSellingRestricted": true,
"gln": "<string>",
"stateProvinceRegion": "<string>",
"licenseNumber": "<string>",
"stateLicenseExpirationDate": "2023-12-25",
"deaLicenseExpirationDate": "2023-12-25"
}
],
"page": {
"limit": 100,
"nextCursor": "<string>",
"prevCursor": "<string>",
"estimatedTotal": 1
}
}Pharmacies
Search pharmacies in the credential's group(s)
Scope: pharmacies:read.
GET
/
pharmacies
Search pharmacies in the credential's group(s)
curl --request GET \
--url https://sandbox-api.instockrx.com/pharmacies \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/pharmacies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/pharmacies"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nationalProviderIdentifier": "1234567890",
"doingBusinessAs": "<string>",
"contactEmail": "jsmith@example.com",
"contactPhone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bankingStatus": "active",
"isSellingRestricted": true,
"gln": "<string>",
"stateProvinceRegion": "<string>",
"licenseNumber": "<string>",
"stateLicenseExpirationDate": "2023-12-25",
"deaLicenseExpirationDate": "2023-12-25"
}
],
"page": {
"limit": 100,
"nextCursor": "<string>",
"prevCursor": "<string>",
"estimatedTotal": 1
}
}Authorizations
Headers
Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.
Query Parameters
NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier
rather than a number, consistent with how it handles NDC, GTIN and other
healthcare identifiers. CMS-issued NPIs always start with 1 or 2, so
leading-zero NPIs do not arise in practice, but string typing rules out the
broader class of integer-identifier truncation bugs that v1 was open to.
Pattern:
^\d{10}$Examples:
"1234567890"
"2987654321"