Skip to content
Documentation
Hevia for developers

Quotes

Quotes of a deal, with their items and the computed totals.

Quotes of a deal, with their items and the computed totals.

List quotes

GET /quotes

ScopePackageIdempotency-Key
quotes:readScale (API)not used

Parameters

NameInTypeDescription
limitqueryinteger1 to 100. Default 25.
offsetqueryintegerDefault 0.
deal_idquerystring (uuid)
statusquerystringOne of draft, sent, accepted, rejected.

Request

curl "https://hevia.app/api/v1/quotes?status=sent" \
  -H "Authorization: Bearer $HEVIA_KEY"

Response

200 OK.

JSON
{
  "data": [
    {
      "id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
      "deal_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
      "number": "Q-2026-014",
      "title": "Website relaunch",
      "currency": "EUR",
      "status": "draft",
      "items": [
        {
          "name": "Anna Example",
          "quantity": 1,
          "unit_cents": 480000,
          "tax_rate": 1,
          "discount": 1
        }
      ],
      "net_cents": 480000,
      "tax_cents": 480000,
      "gross_cents": 480000,
      "valid_until": "2026-12-15",
      "sent_at": "2026-11-10T09:30:00.000Z",
      "decided_at": "2026-11-10T09:30:00.000Z",
      "created_at": "2026-11-10T09:30:00.000Z",
      "updated_at": "2026-11-10T09:30:00.000Z"
    }
  ],
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 1,
    "next_offset": null
  }
}

Fields of Quote:

FieldTypeDescription
idstring (uuid)
deal_idstring (uuid)
numberstring
titlestring
currencystring
statusstringOne of draft, sent, accepted, rejected.
itemsQuoteItem[]
net_centsinteger
tax_centsinteger
gross_centsinteger
valid_untilstring | null
sent_atstring | null
decided_atstring | null
created_atstring (date-time)
updated_atstring (date-time)

Errors

StatusCodeWhen
400invalid_requestInvalid request
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

One quote with totals

GET /quotes/{id}

ScopePackageIdempotency-Key
quotes:readScale (API)not used

Parameters

NameInTypeDescription
id (required)pathstring (uuid)Id

Request

curl "https://hevia.app/api/v1/quotes/3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70" \
  -H "Authorization: Bearer $HEVIA_KEY"

Response

200 OK.

JSON
{
  "data": {
    "id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
    "deal_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
    "number": "Q-2026-014",
    "title": "Website relaunch",
    "currency": "EUR",
    "status": "draft",
    "items": [
      {
        "name": "Anna Example",
        "quantity": 1,
        "unit_cents": 480000,
        "tax_rate": 1,
        "discount": 1
      }
    ],
    "net_cents": 480000,
    "tax_cents": 480000,
    "gross_cents": 480000,
    "valid_until": "2026-12-15",
    "sent_at": "2026-11-10T09:30:00.000Z",
    "decided_at": "2026-11-10T09:30:00.000Z",
    "created_at": "2026-11-10T09:30:00.000Z",
    "updated_at": "2026-11-10T09:30:00.000Z"
  }
}

Fields of Quote:

FieldTypeDescription
idstring (uuid)
deal_idstring (uuid)
numberstring
titlestring
currencystring
statusstringOne of draft, sent, accepted, rejected.
itemsQuoteItem[]
net_centsinteger
tax_centsinteger
gross_centsinteger
valid_untilstring | null
sent_atstring | null
decided_atstring | null
created_atstring (date-time)
updated_atstring (date-time)

Errors

StatusCodeWhen
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
404not_foundNot found
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

Generated from the product's own registries, so the reference matches the API.