Requirements capture the technical scope of client needs. Quotes translate requirements into commercial proposals. Together they form the pre-sales pipeline between lead capture and job execution. Linking a quote to a requirement viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ency07/B2B/llms.txt
Use this file to discover all available pages before exploring further.
requirement_id establishes full traceability: lead → requirement → quote → job → invoice.
Requirements
Lifecycle
BORRADOR when created by the API and progress through review and diagnostic stages before being linked to a quote (COTIZACION) and ultimately marked COMPLETADO or CANCELADO.
RequirementRow interface
getRequirements(tenantCode?) → RequirementRow[]
Returns all requirements for the tenant ordered by created_at descending, with the related client record joined.
createRequirement(tenantCode, reqData)
Requires the requirements action permission. New requirements are always created in BORRADOR status.
created_by field is resolved to the tenant owner user via resolveTenantOwnerUserId.
updateRequirementStatus(reqId, newStatus, extra?)
Updates the status column on a requirement. The optional extra argument accepts any additional columns to patch in the same operation — for example, assigning an engineer:
Quotes
Lifecycle
BORRADOR, reviewed internally (EN_REVISION), sent to the client (ENVIADA), then resolved as APROBADA, RECHAZADA, or VENCIDA (expired past valid_until).
QuoteRow interface
getQuotes(tenantCode?) → QuoteRow[]
Returns all non-deleted quotes for the tenant ordered by created_at descending, with the client’s legal_name joined.
createQuote(tenantCode, quoteData)
Requires the quotes.create action permission. The quote is created in BORRADOR status.
addQuoteItem(tenantCode, itemData)
Appends a line item to an existing quote. Each item carries its own quantity, unit price, discount, and tax percentage. The item_order field controls the display sequence on the quote PDF.
quote_items table with unit defaulted to "UNIDAD".