Cancel pending cash offers spawned by this preference
curl --request POST \
--url https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'POST', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"cancelledCount": 1
}Evergreen Cash Offer Preferences
Cancel pending cash offers spawned by this preference
Scope: offers:write.
POST
/
evergreen-cash-offer-preferences
/
{id}
/
cancel-pending
Cancel pending cash offers spawned by this preference
curl --request POST \
--url https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'POST', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/evergreen-cash-offer-preferences/{id}/cancel-pending"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"cancelledCount": 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.