Drug-name autocomplete
curl --request GET \
--url https://sandbox-api.instockrx.com/drug-packages/autocomplete \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/drug-packages/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/drug-packages/autocomplete"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"name": "<string>",
"nationalDrugCode": "<string>",
"labelerName": "<string>"
}
]
}Drug Packages
Drug-name autocomplete
Scope: drugs:read.
GET
/
drug-packages
/
autocomplete
Drug-name autocomplete
curl --request GET \
--url https://sandbox-api.instockrx.com/drug-packages/autocomplete \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/drug-packages/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/drug-packages/autocomplete"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"name": "<string>",
"nationalDrugCode": "<string>",
"labelerName": "<string>"
}
]
}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.