Get drug-package metadata by NDC
curl --request GET \
--url https://sandbox-api.instockrx.com/drug-packages/{nationalDrugCode} \
--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/{nationalDrugCode}', 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/{nationalDrugCode}"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"nationalDrugCode": "<string>",
"nationalDrugCodeNormalized": "<string>",
"labelerName": "<string>",
"packageName": "<string>",
"packageDescription": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantityUnitQualifier": "<string>",
"packageQuantity": "1",
"packageSize": "1",
"packageSizeUnitsCodeDesc": "<string>",
"schedule": "<string>",
"branded": true,
"generic": true,
"isRems": true,
"isPrescription": true,
"drugStorageConditionType": "RoomTemperature",
"nadacPrice": "42.50",
"imageUrls": {
"tiny": "<string>",
"thumb": "<string>",
"medium": "<string>",
"large": "<string>"
}
}{
"type": "https://api.instockrx.com/problems/listing-not-available",
"title": "<string>",
"status": 349,
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Drug Packages
Get drug-package metadata by NDC
Scope: drugs:read.
GET
/
drug-packages
/
{nationalDrugCode}
Get drug-package metadata by NDC
curl --request GET \
--url https://sandbox-api.instockrx.com/drug-packages/{nationalDrugCode} \
--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/{nationalDrugCode}', 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/{nationalDrugCode}"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"nationalDrugCode": "<string>",
"nationalDrugCodeNormalized": "<string>",
"labelerName": "<string>",
"packageName": "<string>",
"packageDescription": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantityUnitQualifier": "<string>",
"packageQuantity": "1",
"packageSize": "1",
"packageSizeUnitsCodeDesc": "<string>",
"schedule": "<string>",
"branded": true,
"generic": true,
"isRems": true,
"isPrescription": true,
"drugStorageConditionType": "RoomTemperature",
"nadacPrice": "42.50",
"imageUrls": {
"tiny": "<string>",
"thumb": "<string>",
"medium": "<string>",
"large": "<string>"
}
}{
"type": "https://api.instockrx.com/problems/listing-not-available",
"title": "<string>",
"status": 349,
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<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.
Path Parameters
Response
OK