curl --request GET \
--url https://sandbox-api.instockrx.com/groups/signup-link \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/groups/signup-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/groups/signup-link"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": "<string>",
"portalUrl": "<string>",
"appUrl": "<string>"
}Read the signup link for the credential's group
Scope: pharmacies:read.
The link a partner sends to pharmacies so their signup is credited to, and joins, this group. A pharmacy that registers through it is attributed to the group and joins it without a separate invitation.
code is the group’s 12-character referral code; portalUrl and appUrl are the
same code already placed in the two signup entry points, so send one of those
rather than building a URL from the code yourself.
Not every group can offer one. Chain-linked, taxonomy, state and marketplace groups
are not eligible and answer 409 signup-link-unavailable - that is a property of
the group, not a transient failure, so do not retry it.
curl --request GET \
--url https://sandbox-api.instockrx.com/groups/signup-link \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/groups/signup-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/groups/signup-link"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": "<string>",
"portalUrl": "<string>",
"appUrl": "<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.