Updates an existing draft marketplace listing.
Draft Listings
Updates an existing draft marketplace listing.
Updates the details of a draft listing identified by its ID. Ensures the draft exists and the user has permission to modify it.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| SellingPharmacyNpi | Yes | long | Must be a valid NPI |
| ExpirationDate | No | string | If provided, must be a valid future date in ISO 8601 format (e.g. “2025-12-31T00:00:00Z”) |
| LotNumber | No | string | If provided, must be a non-empty, non-whitespace string |
| Price | No | decimal | If provided, must be a positive number |
| FullPackage | No | bool | Affects Quantity validation when Quantity is provided |
| Quantity | No | decimal | If provided, must be positive. If FullPackage=true: must equal 1. If FullPackage=false: between 0.01 and the drug’s package size |
| SealedPackage | No | 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 |
PUT
Updates an existing draft marketplace listing.
Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Path Parameters
The identifier of the draft listing to update.
Body
The updated data for the draft listing.
Response
Success