Search Pharmacies by groupId
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/pharmacies/search \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/pharmacies/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/pharmacies/search"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"doingBusinessAs": "<string>",
"name": "<string>",
"nationalProviderIdentifier": 123,
"bankingStatus": "<string>",
"pharmacyMembersEmails": [
"<string>"
],
"pharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instockRxStartDate": "2023-11-07T05:31:56Z",
"dateAddedToGroup": "2023-11-07T05:31:56Z",
"address": {
"city": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"stateAcronym": "<string>"
},
"restrictionStateAcronym": "<string>",
"deaRegistrationNumber": "<string>",
"ncpdpNumber": "<string>"
}
]{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Search
Search Pharmacies by groupId
Returns all pharmacies belonging to the group identified by the API key.
Each pharmacy includes:
- bankingStatus — active, inactive, or unknown.
- instockRxStartDate — date onboarded onto InStockRx; may be null for early/imported pharmacies.
- dateAddedToGroup — date added to THIS group; may be null for memberships created by invitation acceptance. Reflects the CURRENT membership: remove-and-re-add yields a fresh date.
- address — the PHYSICAL address, or null.
- restrictionStateAcronym — the state whose listing restrictions apply, sourced from the SHIPPING address. Use this field, not address.stateAcronym, when evaluating state-based rules (e.g. CT partial-container prohibition).
- deaRegistrationNumber, ncpdpNumber, pharmacyId — identifiers.
No request body required — group is resolved from the X-INVIEW-AUTH header.
GET
/
api
/
v1
/
pharmacies
/
search
Search Pharmacies by groupId
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/pharmacies/search \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/pharmacies/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/pharmacies/search"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"doingBusinessAs": "<string>",
"name": "<string>",
"nationalProviderIdentifier": 123,
"bankingStatus": "<string>",
"pharmacyMembersEmails": [
"<string>"
],
"pharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instockRxStartDate": "2023-11-07T05:31:56Z",
"dateAddedToGroup": "2023-11-07T05:31:56Z",
"address": {
"city": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"stateAcronym": "<string>"
},
"restrictionStateAcronym": "<string>",
"deaRegistrationNumber": "<string>",
"ncpdpNumber": "<string>"
}
]{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Authorizations
Response
OK