Update Pricing Settings
Pricing Settings
Update Pricing Settings
Update glass pricing configuration
PUT
Update Pricing Settings
Updates the singleton pricing settings document. Only the fields you include will be changed — omitted fields are left untouched.
Requires admin or manager role.
After a successful update, the server emits a
pricing:updated WebSocket event to all clients in the pricing room.
Request Body
Nested map of glass type → thickness → pricing. Each entry must have Object format (recommended):
pricePerSqFt (number, min 0) and grindingRate. grindingRate accepts either a single number (legacy) or an object keyed by grinding type.Number format (legacy):Price per hole. Must be ≥ 0.
Price per notch. Must be ≥ 0.
Response
Returns the full updated pricing settings object (same shape as GET).WebSocket Side Effect
| Event | Room | Payload |
|---|---|---|
pricing:updated | pricing | The full updated pricing settings object |