Group NPI List Update
curl --request POST \
--url https://sandbox-api.instockrx.com/api/v1/groups/npi-update \
--header 'Content-Type: application/json' \
--header 'X-INVIEW-AUTH: <api-key>' \
--data '[
1234567890
]'const options = {
method: 'POST',
headers: {'X-INVIEW-AUTH': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([1234567890])
};
fetch('https://sandbox-api.instockrx.com/api/v1/groups/npi-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/groups/npi-update"
payload = [1234567890]
headers = {
"X-INVIEW-AUTH": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Utility
Group NPI List Update
Updates the list of pharmacy NPIs associated with the specified group. Valid NPIs are added to the group, while unknown NPIs are recorded as pending invitations.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| npiList (body) | Yes | long[] | Array of NPI numbers. Example: [1234567890, 2345678901] |
POST
/
api
/
v1
/
groups
/
npi-update
Group NPI List Update
curl --request POST \
--url https://sandbox-api.instockrx.com/api/v1/groups/npi-update \
--header 'Content-Type: application/json' \
--header 'X-INVIEW-AUTH: <api-key>' \
--data '[
1234567890
]'const options = {
method: 'POST',
headers: {'X-INVIEW-AUTH': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([1234567890])
};
fetch('https://sandbox-api.instockrx.com/api/v1/groups/npi-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/groups/npi-update"
payload = [1234567890]
headers = {
"X-INVIEW-AUTH": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)