Skip to main content

Price Lists

Price lists (tarifas): base cards (TB), factor cards (TBF), discount cards (DTO) and combos (COM), with per-product entries, discount rules and combo conditions.

๐Ÿ“„๏ธ Create price list draft

PERSISTS a new price list in draft mode (`draft=true`) and returns it with a real `id` ร”ร‡รถ unlike the non-persisting `/new` of other resources. The row must exist so entries, discount rules and combo conditions can be attached while the form is being filled; the first PUT finalises the draft. Hints: `priceListType` (required ร”ร‡รถ TB, TBF, DTO or COM), `forSales` (default true), `companyId` (defaults to the user's current company), `copyFromId` (duplicates the source price list including entries and combo conditions), `name`, `code`. Delete the draft with the regular DELETE to cancel.