Creates a new cash offer.
Cash Offers
Creates a new cash offer.
Accepts details for a third-party cash offer and creates a new cash offer. Validates the buying pharmacy and ensures the requesting user has permission to create the listing.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| BuyingPharmacyNpi | Yes | long | Must be a valid NPI |
| NationalDrugCode | Yes | string | Must correspond to a real drug identifier |
| MinimalExpirationDate | Yes | string | ISO 8601 format (e.g. “2025-12-31T00:00:00Z”). Must be a valid future date |
| Price | Yes | decimal | Must be a positive number |
| RequireFullPackage | Yes | bool | Affects RequestedQuantity validation |
| RequestedQuantity | Yes | decimal | Must be positive. If RequireFullPackage=true: whole number between 1 and 10. If RequireFullPackage=false: between 0.01 and the drug’s package size |
| RequireSealedPackage | Yes | bool | - |
| RequireOriginalPackage | Yes | bool | - |
| RequireIntactPackageLabel | Yes | bool | - |
| ShippingRequestMethod | Yes | enum | Allowed values: Cheapest (1), Medium (2), ASAP (3). Custom (0) is not supported |
| MaxShippingPrice | Conditional | decimal | Required and must be positive when ShippingRequestMethod=Medium. Must be null or 0 otherwise |
| ShipByDate | No | string | If provided, must be a valid future date in ISO 8601 format |
| BuyingPharmacyMessage | No | string | If provided, must be a non-empty, non-whitespace string |
| ShowOnlyInState | No | bool | Not returned in the response. Instead, stateGroupId is returned: if showOnlyInState = true, stateGroupId will have a GUID value; if false, stateGroupId will be null |
POST
Creates a new cash offer.
Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Body
The model containing details of the cash offer to create.
Available options:
0, 1, 2, 3 Response
Created
Available options:
10, 20, 30, 40 Available options:
0, 1, 2 Available options:
0, 1, 2, 3, 4, 10 Available options:
0, 1, 2, 3