Search marketplace listings
Search
Search marketplace listings
Flexible search across InStockRx marketplace listings with filtering, sorting, and pagination.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| PharmacyNpi | Yes | long | Must be a valid NPI |
| SearchingContext | Yes | enum | Marketplace (1), BuyingActivity (2), SellingActivity (3) |
| NationalDrugCodes | No | string[] | Filter by NDC codes |
| BuyingPharmacyNpis | No | long[] | Filter by buying pharmacy NPIs. Not allowed when SearchingContext is Marketplace (1) or BuyingActivity (2) |
| SellingPharmacyNpis | No | long[] | Filter by selling pharmacy NPIs. Not allowed when SearchingContext is SellingActivity (3) |
| AllowedStatuses | No | enum[] | Pending (0), Purchased (1), Cancelled (2), ShippingConfirmed (5), ShippingReceivedConfirmed (6), ShippingNotReceived (7) |
| AllowedDeliveryStatuses | No | enum[] | Unknown (0), PreTransit (1), InTransit (2), OutForDelivery (3), Delivered (4), AvailableForPickup (5), ReturnToSender (6), Failure (7), Cancelled (8), Error (9) |
| ListingDate | No | DateRange | Object with start and end (ISO 8601) |
| PurchasedDate | No | DateRange | Object with start and end (ISO 8601) |
| ShippedDate | No | DateRange | Object with start and end (ISO 8601) |
| CancelledDate | No | DateRange | Object with start and end (ISO 8601) |
| ReceivedDate | No | DateRange | Object with start and end (ISO 8601) |
| NotTornPackageLabel | No | bool | Filter by intact package labels |
| FullPackage | No | bool | Filter by full packages only |
| SealedPackage | No | bool | Filter by sealed packages only |
| IsGroupOnly | No | bool | Filter by group membership |
| SearchTerm | No | string | Free-text search |
| SortName | No | string | Allowed: nationalDrugCode, listingDate, purchasedDate, shippedDate, cancelledDate, receivedDate |
| SortDirection | No | string | asc or desc |
| Start | No | int | Pagination offset (default: 0) |
| Take | No | int | Page size (default: 10) |
POST
Search marketplace listings
Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Body
Available options:
1, 2, 3 Available options:
0, 1, 2, 5, 6, 7, 10 Available options:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9