curl --request GET \
--url https://sandbox-api.instockrx.com/cash-offers/{id} \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/cash-offers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/cash-offers/{id}"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"nationalDrugCode": "<string>",
"buyingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestedQuantity": "1",
"price": "42.50",
"nationalDrugCodeNormalized": "<string>",
"labelerName": "<string>",
"packageName": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantityUnitQualifier": "<string>",
"buyingPharmacyName": "<string>",
"buyingPharmacyDBA": "<string>",
"buyingPharmacyNpi": "1234567890",
"buyingPharmacyPhone": "<string>",
"buyingPharmacyAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"buyingPharmacyMessage": "<string>",
"sellingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellingPharmacyName": "<string>",
"sellingPharmacyDBA": "<string>",
"sellingPharmacyNpi": "1234567890",
"sellingPharmacyPhone": "<string>",
"sellingPharmacyAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"sellingPharmacyMessage": "<string>",
"sellingPharmacyResponseDate": "2023-11-07T05:31:56Z",
"minimalExpirationDate": "2023-12-25",
"requireFullPackage": true,
"requireSealedPackage": true,
"requireOriginalPackage": true,
"requireIntactPackageLabel": true,
"shippingRequestMethod": "Custom",
"maxShippingPrice": "42.50",
"shipByDate": "2023-12-25",
"showOnlyInState": true,
"resultingMarketplaceListingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"evergreenCashOfferPreferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"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>"
}
]
}Get a cash offer
Scope: offers:read.
curl --request GET \
--url https://sandbox-api.instockrx.com/cash-offers/{id} \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/cash-offers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/cash-offers/{id}"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"nationalDrugCode": "<string>",
"buyingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestedQuantity": "1",
"price": "42.50",
"nationalDrugCodeNormalized": "<string>",
"labelerName": "<string>",
"packageName": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantityUnitQualifier": "<string>",
"buyingPharmacyName": "<string>",
"buyingPharmacyDBA": "<string>",
"buyingPharmacyNpi": "1234567890",
"buyingPharmacyPhone": "<string>",
"buyingPharmacyAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"buyingPharmacyMessage": "<string>",
"sellingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellingPharmacyName": "<string>",
"sellingPharmacyDBA": "<string>",
"sellingPharmacyNpi": "1234567890",
"sellingPharmacyPhone": "<string>",
"sellingPharmacyAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateAcronym": "<string>",
"postalCode": "<string>"
},
"sellingPharmacyMessage": "<string>",
"sellingPharmacyResponseDate": "2023-11-07T05:31:56Z",
"minimalExpirationDate": "2023-12-25",
"requireFullPackage": true,
"requireSealedPackage": true,
"requireOriginalPackage": true,
"requireIntactPackageLabel": true,
"shippingRequestMethod": "Custom",
"maxShippingPrice": "42.50",
"shipByDate": "2023-12-25",
"showOnlyInState": true,
"resultingMarketplaceListingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"evergreenCashOfferPreferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"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.
Response
OK
A buyer's request to purchase a quantity of an NDC at a stated price. Internally also called a "marketplace listing request" — both names denote the same object.
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.
^\d{10}$"1234567890"
"2987654321"
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.
^\d{10}$"1234567890"
"2987654321"