GET
Get a bundle

Authorizations

X-InStockRx-Api-Key
string
header
required

Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.

Headers

X-Pharmacy-Id
string<uuid>

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.

Path Parameters

id
string<uuid>
required

Response

OK

id
string<uuid>
required
status
enum<string>
required

Lifecycle of a Bundle (shipment grouping).

  • Pending — created, not yet being worked
  • InProcess — being assembled for shipment
  • Shipped — a label was bought and the bundle is in transit
  • Delivered — the carrier reported delivery
  • Cancelled — the bundle will not ship
  • Merged — 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
buyingPharmacyId
string<uuid>
required
sellingPharmacyId
string<uuid>
required
items
object[]
required
bundleCode
string

Human-readable code, e.g. ABCD-20260529-001.

deliveryStatus
enum<string>
Available options:
Unknown,
PreTransit,
InTransit,
OutForDelivery,
Delivered,
AvailableForPickup,
ReturnToSender,
Failure,
Cancelled,
Error
listingStatus
enum<string>

Worst-case status across all items.

Available options:
Pending,
Purchased,
Cancelled,
ShippingConfirmed,
ShippingReceivedConfirmed,
ShippingReceivedNotConfirmed,
Paused
paymentStatus
enum<string>

Where a listing's payment has got to. Confirmed against Inview.Domain/Enum/MarketplaceListingPaymentStatus.cs; the live document never emits this enum, because it appears only on responses, so the drift check cannot confirm it and a reader has to.

Available options:
NotInitiated,
Pending,
PaymentConfirmed,
PaymentSentToSeller,
SellerReceivedPayment,
Refunded,
FailedDueToInsufficientFunds,
Cancelled
isColdChain
boolean
requiresShippingSelection
boolean

True if the next purchase joining this bundle must supply shippingSelection.

canAcceptColdChainItem
boolean

False once the cold-chain cap (6) is reached.

buyingPharmacyName
string
sellingPharmacyName
string
soldDate
string<date-time>
shipByDate
string<date>
shippedDate
string<date-time>
minPickupDateTime
string<date-time>
maxPickupDateTime
string<date-time>
insureShieldQuotePremium
string

USD amount as a decimal string, up to two decimal places.

Pattern: ^-?\d+(\.\d{1,2})?$
Examples:

"42.50"

"0.01"

"1200"

insureShieldQuotePurchasedAt
string<date-time>