Search cash offers
Search
Search cash offers
Flexible search across InStockRx cash offers 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 BuyingActivity (2) or SellingActivity (3) |
| SellingPharmacyNPIs | No | long[] | Filter by selling pharmacy NPIs. Not allowed when SearchingContext is Marketplace (1) |
| AllowedStatuses | No | enum[] | Pending (0), Declined (1), Cancelled (2), Accepted (3) |
| RequestedDate | No | DateRange | Object with start and end (ISO 8601) |
| RequireFullPackage | No | bool | Filter by full package requirement |
| RequireSealedPackage | No | bool | Filter by sealed package requirement |
| RequireIntactPackageLabel | No | bool | Filter by intact package label requirement |
| RequireOriginalPackage | No | bool | Filter by original package requirement |
| IsGroupOnly | No | bool | Filter by group membership |
| SearchTerm | No | string | Free-text search |
| SortName | No | string | Allowed: nationalDrugCode, minimalExpirationDate, price, packageName, requestedDate, requestedQuantity |
| SortDirection | No | string | asc or desc |
| Start | No | int | Pagination offset (default: 0) |
| Take | No | int | Page size (default: 10) |
POST
Search cash offers
Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Body
Available options:
1, 2, 3 Available options:
0, 1, 2, 3, 4, 10