Productions represent the manufacturing stage of the sublimation workflow. Once an order (pedido) is confirmed, it is promoted to a production record, assigned to a responsible employee, and eventually finalized. The production inherits pricing, type, and quantity directly from the source order.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 production endpoints require
TokenAny (accepts either a company or sub-user JWT) plus TokenAuthorize('Admin', 'Super Admin'). Pass your token in every request using the token-access: Bearer $TOKEN header.POST /api/production/:company_id/:pedido_id
Creates a production record from an existing order. The production inheritsprice_production, type_production, and quantity_production from the referenced pedido. Provide additional scheduling fields in the request body.
Path parameters
MongoDB ObjectId of the company owning the production.
MongoDB ObjectId of the order being moved into production.
Name or identifier of the person responsible for this production job.
Scheduled delivery date (e.g.,
"20/8/2024").Priority level. Accepted values:
Baja, Media, Alta, Urgente."Pedido pasado a produccion" on success.true on success.The created production document.
POST /api/production/:company_id/assigned/:production_id
Assigns aUserCompany sub-user to a production record as the responsible worker.
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId of the production to update.
MongoDB ObjectId of the sub-user (
UserCompany) to assign."Empleado asignado a produccion" on success.POST /api/production/finalized/:company_id/:pedido_id/:production_id
Marks a production as"Finalizado", recording the completion date. This is required before generating a sale from this production.
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId of the source order.
MongoDB ObjectId of the production to finalize.
Must be
"Finalizado" to trigger the state change."Produccion de producto finalizada. El trabajo ha sido completado exitosamente" on success.true on success.GET /api/production/list/:company_id/:production_id/:query/:pag?/:perpage?
Returns a paginated list of productions, optionally filtered by priority level using the:query path segment.
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId used to scope the lookup.
Numeric filter for
priority_production:0→Baja1→Media2→Alta3→Urgente- Any other value → no priority filter applied
Page number (optional, defaults to
1).Items per page (optional, defaults to server default).
"Cargandos informacion de producciones" on success.true on success.Array of production documents for the current page, sorted by
_id descending.Pagination metadata.
GET /api/production/list-one/:company_id/:production_id
Retrieves a single production document by its ID. Path parametersMongoDB ObjectId of the company.
MongoDB ObjectId of the production to retrieve.
"Cargando informacion de produccion" on success.true on success.Full production document with all fields.