GET /api/quotation/quotations
Retrieves a list of all quotations stored in the system. Each quotation includes factory information, pricing details, and itemized sections with construction items.Headers
No special headers required for this endpoint.Query Parameters
This endpoint does not accept query parameters. It returns all quotations in the system.Request Example
Response
200 - Success
200 - Success
Returns an array of quotation objects.
Array of quotation objects.
MongoDB generated quotation ID.
Factory or construction site name.
Fix or property identifier.
General description of the quotation.
Subtotal amount before taxes and additional costs.
Unexpected costs or contingency amount.
IVA (Value Added Tax) amount.
Administrative costs.
Utility or profit margin amount.
Total price including all costs and taxes.
Array of construction sections.
Description of the construction section.
Total price for this section.
Array of items within the section.
Name of the construction item.
Detailed description of the item.
Total cost for this item (quantity × unit value).
Quantity of items.
Unit of measurement (e.g., “m2”, “units”, “kg”).
Unit value/price per item.
Example Response
500 - Internal Server Error
500 - Internal Server Error
Response Structure
The endpoint returns a flat array of quotations. Each quotation contains:- Top-level pricing: Overall costs, taxes, and totals
- Sections: Major construction divisions (e.g., foundation, walls, electrical)
- Items: Specific materials or work items within each section
Use Cases
- Viewing all quotations for a construction company
- Generating reports on pending or active quotations
- Analyzing pricing across multiple projects
- Exporting quotation data for external systems
Implementation Reference
The list quotations endpoint is implemented in:- Route:
/home/daytona/workspace/source/src/routes/quotationRoutes.js:8 - Controller:
/home/daytona/workspace/source/src/controllers/quotationController.js:4