List bundles (optionally filtered by status / counterparty)
curl --request GET \
--url https://sandbox-api.instockrx.com/bundles \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/bundles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/bundles"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"buyingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"marketplaceListingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"isPrimary": true,
"packageName": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantity": "1",
"price": "42.50",
"shipByDate": "2023-12-25",
"deliveryDays": 1,
"isColdChain": true,
"hasReturn": true
}
],
"bundleCode": "<string>",
"deliveryStatus": "Unknown",
"listingStatus": "Pending",
"paymentStatus": "NotInitiated",
"isColdChain": true,
"requiresShippingSelection": true,
"canAcceptColdChainItem": true,
"buyingPharmacyName": "<string>",
"sellingPharmacyName": "<string>",
"soldDate": "2023-11-07T05:31:56Z",
"shipByDate": "2023-12-25",
"shippedDate": "2023-11-07T05:31:56Z",
"minPickupDateTime": "2023-11-07T05:31:56Z",
"maxPickupDateTime": "2023-11-07T05:31:56Z",
"insureShieldQuotePremium": "42.50",
"insureShieldQuotePurchasedAt": "2023-11-07T05:31:56Z"
}
],
"page": {
"limit": 100,
"nextCursor": "<string>",
"prevCursor": "<string>",
"estimatedTotal": 1
}
}Bundles
List bundles (optionally filtered by status / counterparty)
Scope: listings:read.
Use ?status=Pending&sellingPharmacyId=… to find bundles the buyer can
join on a subsequent purchase.
GET
/
bundles
List bundles (optionally filtered by status / counterparty)
curl --request GET \
--url https://sandbox-api.instockrx.com/bundles \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/bundles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/bundles"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"buyingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellingPharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"marketplaceListingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Pending",
"isPrimary": true,
"packageName": "<string>",
"drugPackageForm": "<string>",
"drugPackageStrength": "<string>",
"quantity": "1",
"price": "42.50",
"shipByDate": "2023-12-25",
"deliveryDays": 1,
"isColdChain": true,
"hasReturn": true
}
],
"bundleCode": "<string>",
"deliveryStatus": "Unknown",
"listingStatus": "Pending",
"paymentStatus": "NotInitiated",
"isColdChain": true,
"requiresShippingSelection": true,
"canAcceptColdChainItem": true,
"buyingPharmacyName": "<string>",
"sellingPharmacyName": "<string>",
"soldDate": "2023-11-07T05:31:56Z",
"shipByDate": "2023-12-25",
"shippedDate": "2023-11-07T05:31:56Z",
"minPickupDateTime": "2023-11-07T05:31:56Z",
"maxPickupDateTime": "2023-11-07T05:31:56Z",
"insureShieldQuotePremium": "42.50",
"insureShieldQuotePurchasedAt": "2023-11-07T05:31:56Z"
}
],
"page": {
"limit": 100,
"nextCursor": "<string>",
"prevCursor": "<string>",
"estimatedTotal": 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.
Query Parameters
Lifecycle of a Bundle (shipment grouping).
Pending— created, not yet being workedInProcess— being assembled for shipmentShipped— a label was bought and the bundle is in transitDelivered— the carrier reported deliveryCancelled— the bundle will not shipMerged— the bundle's items were folded into another bundle, which now owns them
Per-item receipt remains the source of truth for completion: an item is only settled
once it is ShippingReceivedConfirmed, whatever the bundle says.
Available options:
Pending, InProcess, Shipped, Cancelled, Delivered, Merged