Resolve sales prices
POST/api/v2/pricing/preview
Resolves, per product, the tax-excluded unit price (base price list or product sheet), the commercial discount (percentage, lineal amount or tax-included final price), the applied price rule and the applicable insurer conditions, against a document context (branch, customer, price lists, date, currency). Stateless: nothing is persisted and eligibility is re-enforced server-side on save. Items resolve by productId or barcode (single-request scanner flow); per-item failures are reported inline via errorCode without failing the batch. Combos that depend on other lines already present on the document are resolved at save time, not here.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Resolved prices
Invalid request (unknown warehouse/customer/price list, no items, ...)
Missing or invalid JWT (Bearer token).
Authenticated user cannot create or edit sales invoices
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.