Sales in the sublimation module represent the final billing step — converting a completed production into an invoice. Each sale references the associated production and client, auto-generates a sequential bill number, and captures payment method and totals.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/MultiSas/llms.txt
Use this file to discover all available pages before exploring further.
All sublimation sales endpoints require
TokenAny plus TokenAuthorize('Admin', 'Super Admin'). Include your token in every request using token-access: Bearer $TOKEN.POST /api/sale/create-sale/:company_id/:production_id
Generates a sale invoice from a finalized production. The production’s price is used as the sale price. The client must be specified in the request body as a MongoDB ObjectId string. Path parametersMongoDB ObjectId of the company.
MongoDB ObjectId of the finalized production to invoice.
MongoDB ObjectId string of the client purchasing the production.
Payment method. Accepted values:
Tarjeta de credito, Transferencia, Efectivo.Quantity purchased. Must be greater than
0."Venta realizada correctamente" on success.true on success.The created sale document.
GET /api/sale/list-sale/:company_id
Returns a paginated list of all sales for a company, sorted by most recent first. Pagination is handled by thePaginate middleware; pass pag and perpage as query parameters.
Path parameters
MongoDB ObjectId of the company.
"Cargando ventas" on success.true on success.Array of sale documents for the current page, sorted by
_id descending.GET /api/sale/list/:company_id/unique/:sale_id
Retrieves a single sale by ID within a company. Path parametersMongoDB ObjectId of the company.
MongoDB ObjectId of the sale to retrieve.
"Mostrando venta detallada" on success.true on success.The full sale document.