Skip to main content
GET
/
api
/
quotations
/
{requestId}
curl --request GET \
  --url https://api.ambiotec.com/api/quotations/12345 \
  --header 'Authorization: Bearer YOUR_TOKEN'
{
  "success": true,
  "quotations": [
    {
      "quotationId": 789,
      "requestId": 12345,
      "templateName": "standard-quotation-v2",
      "status": "FINALIZED",
      "priceService": 5000.00,
      "priceTransport": 250.00,
      "driveFileId": "1abc123xyz",
      "driveWebViewLink": "https://docs.google.com/document/d/1abc123xyz/view",
      "googleDocUrl": "https://docs.google.com/document/d/1abc123xyz/edit",
      "s3Url": "https://ambiotec-quotations.s3.amazonaws.com/quotations/12345/789-20260303.pdf",
      "professionalPdfUrl": "https://ambiotec-quotations.s3.amazonaws.com/quotations/12345/789-professional-20260303.pdf",
      "createdBy": 42,
      "createdAt": "2026-03-03T10:30:00Z",
      "finalizedAt": "2026-03-03T14:15:00Z",
      "metadata": {
        "dataset": {},
        "extraData": {
          "price_service": 5000,
          "price_transport": 250
        },
        "generatedAt": "2026-03-03T10:30:00Z"
      }
    }
  ]
}
Returns a list of all quotations associated with a service request, ordered by creation date (newest first).

Path Parameters

requestId
integer
required
The ID of the service request to retrieve quotations for

Response

success
boolean
Indicates if the request was successful
quotations
array
Array of quotation objects
curl --request GET \
  --url https://api.ambiotec.com/api/quotations/12345 \
  --header 'Authorization: Bearer YOUR_TOKEN'
{
  "success": true,
  "quotations": [
    {
      "quotationId": 789,
      "requestId": 12345,
      "templateName": "standard-quotation-v2",
      "status": "FINALIZED",
      "priceService": 5000.00,
      "priceTransport": 250.00,
      "driveFileId": "1abc123xyz",
      "driveWebViewLink": "https://docs.google.com/document/d/1abc123xyz/view",
      "googleDocUrl": "https://docs.google.com/document/d/1abc123xyz/edit",
      "s3Url": "https://ambiotec-quotations.s3.amazonaws.com/quotations/12345/789-20260303.pdf",
      "professionalPdfUrl": "https://ambiotec-quotations.s3.amazonaws.com/quotations/12345/789-professional-20260303.pdf",
      "createdBy": 42,
      "createdAt": "2026-03-03T10:30:00Z",
      "finalizedAt": "2026-03-03T14:15:00Z",
      "metadata": {
        "dataset": {},
        "extraData": {
          "price_service": 5000,
          "price_transport": 250
        },
        "generatedAt": "2026-03-03T10:30:00Z"
      }
    }
  ]
}

Notes

  • Quotations are returned in descending order by creation date (newest first)
  • The endpoint also works as a nested route: /api/serviceRequests/:id/quotations
  • Both draft and finalized quotations are included in the response
  • The professionalPdfUrl field contains the URL to the HTML-generated professional PDF if available

Build docs developers (and LLMs) love