Update marketplace listing
Marketplace Listings
Update marketplace listing
Updates an existing marketplace listing on InStockRx. Validates the pharmacy based on the provided NPI and token claims, then applies updates only if the listing is still in a Pending state.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| PharmacyNPI | Yes | long | Must be a valid NPI |
| ExpirationDate | Yes | string | Must be a valid future date in ISO 8601 format (e.g. “2025-12-31T00:00:00Z”) |
| LotNumber | Yes | string | Non-empty string |
| Price | Yes | decimal | Must be a positive number |
| FullPackage | Yes | bool | Affects Quantity validation |
| Quantity | Yes | decimal | Must be positive. If FullPackage=true: must equal 1. If FullPackage=false: between 0.01 and the drug’s package size |
| SealedPackage | Yes | bool | - |
| OriginalPackage | Yes | bool | - |
| TornPackageLabel | No | bool | - |
| SerialNumber | No | string | If provided, must be a non-empty, non-whitespace string |
| AdditionalPackageNotes | 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 |
Note: Listing must be in Pending status to be updated. Returns 409 Conflict otherwise.
PUT
Update marketplace listing
Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Path Parameters
The unique identifier of the marketplace listing to update.
Body
The update model containing the new listing details.
Response
Success
Available options:
1, 2, 3, 4, 5 Available options:
0, 1, 2, 5, 6, 7, 10 Available options:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9