Record return shipping details
curl --request POST \
--url https://sandbox-api.instockrx.com/returns/{id}/ship-details \
--header 'Content-Type: application/json-patch+json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '"<unknown>"'const options = {
method: 'POST',
headers: {
'X-InStockRx-Api-Key': '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify('<unknown>')
};
fetch('https://sandbox-api.instockrx.com/returns/{id}/ship-details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/returns/{id}/ship-details"
payload = "<unknown>"
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Returns
Record return shipping details
Scope: returns:write.
Records how the return is travelling. Refused with 409 return-shipping-not-arranged until InStockRx has approved the return — see the note on returns needing an admin step.
POST
/
returns
/
{id}
/
ship-details
Record return shipping details
curl --request POST \
--url https://sandbox-api.instockrx.com/returns/{id}/ship-details \
--header 'Content-Type: application/json-patch+json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '"<unknown>"'const options = {
method: 'POST',
headers: {
'X-InStockRx-Api-Key': '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify('<unknown>')
};
fetch('https://sandbox-api.instockrx.com/returns/{id}/ship-details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/returns/{id}/ship-details"
payload = "<unknown>"
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)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.
Body
application/json-patch+jsonapplication/jsontext/jsonapplication/*+json
The body is of type any.
Response
200
Succeeded. The response shape for this operation is not yet in the published contract — it is live ahead of the document.