update_consignment_prices
Adjust per-consignment cost and MSRP on At Dealer lines for one shipment. Validates the whole batch before saving, and updates settlement and dealer portal snapshots automatically.
Instructions
Edit the per-consignment price snapshot on At Dealer lines — the queue's "Edit prices" dialog (PR #224). prices: {line_name: {"cost": required > 0, "msrp": tri-state}} — omit the "msrp" key to keep the stored MSRP, send "" / null to clear it, anything else must be > 0. Writes ONLY this shipment's line snapshot ("Dealer Price" + MSRP), never Serial No / Item masters; settlement and the dealer portal read the same snapshot, so both follow automatically. Server gates: line must be At Dealer with no booked settlement invoice; the whole batch is validated before anything is written (one bad line rejects all). Line names come from consignment_queue. confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prices | Yes | ||
| confirm | No | ||
| consignment_out | Yes |