Replay events to this endpoint
curl --request POST \
--url https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay \
--header 'Content-Type: application/json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '
{
"eventIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-InStockRx-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({eventIds: ['<string>']})
};
fetch('https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay"
payload = { "eventIds": ["<string>"] }
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"scheduledCount": 1
}Webhook Endpoints
Replay events to this endpoint
Scope: webhooks:manage.
POST
/
webhook-endpoints
/
{id}
/
replay
Replay events to this endpoint
curl --request POST \
--url https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay \
--header 'Content-Type: application/json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '
{
"eventIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-InStockRx-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({eventIds: ['<string>']})
};
fetch('https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/webhook-endpoints/{id}/replay"
payload = { "eventIds": ["<string>"] }
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"scheduledCount": 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.