curl --request POST \
--url https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt \
--header 'Content-Type: application/json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '
{
"buyerNotes": "<string>",
"items": [
{
"listingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedDetails": {
"gtin": "<string>",
"serialNumber": "<string>",
"lotNumber": "<string>",
"expirationDate": "2023-12-25",
"nationalDrugCode": "<string>"
},
"buyerNotes": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'X-InStockRx-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
buyerNotes: '<string>',
items: [
{
listingId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
receivedDetails: {
gtin: '<string>',
serialNumber: '<string>',
lotNumber: '<string>',
expirationDate: '2023-12-25',
nationalDrugCode: '<string>'
},
buyerNotes: '<string>'
}
]
})
};
fetch('https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt"
payload = {
"buyerNotes": "<string>",
"items": [
{
"listingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedDetails": {
"gtin": "<string>",
"serialNumber": "<string>",
"lotNumber": "<string>",
"expirationDate": "2023-12-25",
"nationalDrugCode": "<string>"
},
"buyerNotes": "<string>"
}
]
}
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"bundle": {
"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"
},
"receivedListingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"skippedListingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"type": "https://api.instockrx.com/problems/listing-not-available",
"title": "<string>",
"status": 349,
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Buyer confirms receipt of every item in a bundle
Scope: listings:write.
Bulk equivalent of calling POST /marketplace-listings/{id}/confirm-receipt
for each item. Only items currently in ShippingConfirmed are
transitioned; items already received or in other states are left
unchanged. Returns the bundle with updated item statuses.
Per-item DSCSA pedigree may be supplied via items[]. Each entry
applies to one listing in the bundle and accepts the same
confirmationType / receivedDetails shape as the single-listing
endpoint. Listings not present in items[] are confirmed without
DSCSA capture (equivalent to confirmationType: Skipped).
curl --request POST \
--url https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt \
--header 'Content-Type: application/json' \
--header 'X-InStockRx-Api-Key: <api-key>' \
--data '
{
"buyerNotes": "<string>",
"items": [
{
"listingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedDetails": {
"gtin": "<string>",
"serialNumber": "<string>",
"lotNumber": "<string>",
"expirationDate": "2023-12-25",
"nationalDrugCode": "<string>"
},
"buyerNotes": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'X-InStockRx-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
buyerNotes: '<string>',
items: [
{
listingId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
receivedDetails: {
gtin: '<string>',
serialNumber: '<string>',
lotNumber: '<string>',
expirationDate: '2023-12-25',
nationalDrugCode: '<string>'
},
buyerNotes: '<string>'
}
]
})
};
fetch('https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/bundles/{id}/confirm-receipt"
payload = {
"buyerNotes": "<string>",
"items": [
{
"listingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedDetails": {
"gtin": "<string>",
"serialNumber": "<string>",
"lotNumber": "<string>",
"expirationDate": "2023-12-25",
"nationalDrugCode": "<string>"
},
"buyerNotes": "<string>"
}
]
}
headers = {
"X-InStockRx-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"bundle": {
"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"
},
"receivedListingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"skippedListingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"type": "https://api.instockrx.com/problems/listing-not-available",
"title": "<string>",
"status": 349,
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<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.