Quotes
4 endpoints
/v1/quotesList quotes
Returns the paginated list of the account's quotes (cursor v2). Stable sort
created_; with updated_ or updated_, the
list is sorted by ascending updated_, broken by id.
Archived quotes (archived_) are excluded by
default — the public API does not expose them. To retrieve an archived
quote, use the dashboard.
Filters
?status— exact match (draft,sent,signed,cancelled)
quotes:readQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | optional | Opaque pagination cursor: pass the pagination. value from the previous page. |
limit | integer | optional | Maximum number of results per page (default 20, max 100). Above that → 400 invalid_request. |
created_after | string | optional | Filter: only resources created after this date (inclusive). |
created_before | string | optional | Filter: only resources created before this date (inclusive). |
updated_after | string | optional | Filter: only resources modified after this date (inclusive). With an updated_ bound, the list
is sorted by ascending updated_ (oldest change first), tie-broken by id. Restart from the
updated_ of the last resource you read, minus 2 minutes: a long write can carry a date
slightly earlier than the end of your read. Drop duplicates by id. A cursor from another sort
is refused (cursor_). A list that leaves archived resources out (bookings,
quotes) returns them in this read with their archived_: that is how a withdrawal is read. |
updated_before | string | optional | Filter: only resources modified before this date (inclusive). Sorts the list like updated_. |
status | string | optional | Exact match on the quote lifecycle. |
Responses
| Status | Description |
|---|---|
200 | Paginated list of quotes. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/quotes' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'/v1/quotesCreate a quote
Creates a draft quote (status=) through the same creation
path as the dashboard: Capturia assigns the number
(quote_, the account's sequence, never a duplicate) and applies the
account's defaults (validity, payment terms, tax profile,
deposit policy). A provided quote_ is rejected
(400 validation_, reason read_).
contact_ links the quote to its contact (/): each
omitted prospect_ field is read from the contact, and each field you provide
takes precedence. line_ writes the line items in the same operation; the
server computes the amounts. To send the quote to the
lead, use POST /.
Idempotency
The Idempotency- header is optional but recommended: a
retry after a timeout never creates a second quote. A
second request with the same key and the same payload returns the original
response; the same key with a different payload returns
409 idempotency_ (details.: payload_), as does
a request whose key is still being processed (in_, with
Retry-). A key outside the expected format (16 to 128 characters among
A-, a-, 0-, _ and -) returns 400 invalid_. A
rejection (400, 403) is not stored: the key remains usable.
quotes:writeHeaders
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | optional | Idempotency key: 16 to 128 [A- characters (a UUID v4 or a ULID works). A key of any other
shape is refused with 400 invalid_ (details.: idempotency-); an empty header counts as
a request without a key. A second request with the same key and the same payload returns the original
response, with the Idempotency- header, without repeating the operation; the same key with
a different payload is refused with 409 idempotency_. Stored for 24 h. Optional but recommended. |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
contact_id | string | null | optional | The account's contact (/) to link the quote to. Each omitted
prospect_ field is read from the contact; each field you provide takes precedence. A contact
from another account → 400 validation_ (reason not_). |
prospect_name | string | null | optional | The prospect's name. The text "[object Object]" (a mapping that points to an object instead of a field) is removed from it: the readable part is kept; if nothing remains, the field is absent. |
prospect_email | string | null | optional | The prospect's email. Its format is checked when sending: POST /
rejects an invalid email (422 invalid_). |
prospect_phone | string | null | optional | No description. |
prospect_company | string | null | optional | The prospect's company. The text "[object Object]" (a mapping that points to an object instead of a field) is removed from it: the readable part is kept; if nothing remains, the field is absent. |
prospect_address | string | null | optional | Free-form mailing address. |
language | string | optional | Language of the quote (public page, PDF, sending email). Defaults to fr.Allowed values: |
valid_until | string | null | optional | Price guarantee deadline (YYYY-). Omitted: the account's default validity
(in days, starting today, Montreal time). null: no date. The quote is created
as a draft: the date sets a length, which the first send
(POST /) carries over to the sending day (see Quote.). |
payment_terms | string | null | optional | Payment terms (free text). Omitted: the account's terms. null: none. |
line_items | object[] | optional | The quote's line items, written in the same operation; the server computes the amounts. |
line_items[].description | string | required | The line's description, as shown on the quote. |
line_items[].quantity | number | optional | Quantity; defaults to 1. |
line_items[].unit_price | number | optional | Unit price before taxes; defaults to 0. |
line_items[].unit_label | string | null | optional | Displayed unit; when omitted, the default unit in the quote's language. |
line_items[].is_taxable | boolean | optional | Taxable line; defaults to true. |
line_items[].catalog_item_id | string | null | optional | Service from the account's catalog that the line is based on. |
internal_notes | string | optional | Internal notes, not visible to the prospect. |
sales_rep_id | string | null | optional | Assigned sales rep; null or omitted = none. |
tax_profile_id | string | null | optional | Applied tax profile (GST/QST); null or omitted = the account's default profile. |
signature_payment_order | string | optional | Signature ↔ payment order on the public page. Omitted → the account's default
setting (snapshot taken at creation). Value outside the list → 400 validation_.Allowed values: |
tax_exempt_reason | string | null | optional | Written reason for a tax-exempt sale (see Quote.). |
Responses
| Status | Description |
|---|---|
201 | Quote created. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
409 | Conflict with the resource's state.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X POST 'https://api.capturia.io/v1/quotes' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json' \
-d '{
"contact_id": "5d4c3b2a-1f0e-4d9c-8b7a-6f5e4d3c2b1a",
"valid_until": "2026-06-30",
"payment_terms": "Net 30",
"line_items": [
{
"description": "Remplacement de la toiture",
"quantity": 1,
"unit_price": 9500
}
]
}'/v1/quotes/{id}Update a quote
Updates the provided fields of the quote (omitted fields are kept).
At least one field must be provided, otherwise 400 no_.
Amounts (subtotal, tps_, tvq_, total) are
not editable via PATCH — they are computed server-side from the
blocks (managed from the dashboard).
status only accepts declined (the lead declined it) and
cancelled: a quote moves to sent through POST /
(the email goes out), to viewed and signed through the lead, and to
expired through its validity date. A signed, paid, or already closed quote
can no longer be closed (409 status_). While the lead's bank debit
is in progress, closing waits for the bank's answer
(409 payment_, temporary). Closing must be done on its own:
status combined with other fields returns 400 validation_
(reason exclusive_). A signed quote can no longer be updated
(409 already_).
Once sent, a quote keeps what the lead received: its payment plan,
taxes and payment terms no longer change (409 quote_). Its
contact details, validity, sales rep and internal notes stay editable.
Correcting the offer goes through a new version, created from the
quote's page, which replaces the old one when sent.
Archived quotes (archived_) cannot be
updated — returns 404 not_.
quotes:writePath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
prospect_name | string | null | optional | The prospect's name. The text "[object Object]" (a mapping that points to an
object instead of a field) is removed from it: the readable part is
written; if nothing remains, the field is not changed, and a request
that carries only that field is rejected (400 no_). |
prospect_email | string | null | optional | The prospect's email. Its format is checked when sending: POST /
rejects an invalid email (422 invalid_). |
prospect_phone | string | null | optional | No description. |
prospect_company | string | null | optional | The prospect's company. The text "[object Object]" (a mapping that points to an
object instead of a field) is removed from it: the readable part is
written; if nothing remains, the field is not changed, and a request
that carries only that field is rejected (400 no_). |
prospect_address | string | null | optional | No description. |
valid_until | string | null | optional | Price guarantee deadline (YYYY-), null for none. On a draft, the length
it sets is carried over to the day of the first send (see Quote.);
on a quote already sent, the date is written as is. |
payment_terms | string | null | optional | Payment terms shown to the prospect. Frozen once the quote is no longer a
draft (409 quote_). |
internal_notes | string | null | optional | No description. |
sales_rep_id | string | null | optional | No description. |
tax_profile_id | string | null | optional | The quote's tax profile. Frozen once the quote is no longer a draft
(409 quote_). |
payment_plan_type | string | optional | Payment plan structure. The amount of each installment is derived
server-side. The plan is frozen once the quote is no longer a draft (409
quote_), and locked once the first payment is collected (409 payment_).
The plan resulting from the request and the fields already set must be consistent,
otherwise 400 validation_, where details names each field at issue:
required (the plan type requires it), not_ (the plan type requires it
to be null), out_ (installment count or interval out of bounds). Only
deposit carries payment_ and payment_; deposit
has 1 to 36 installments, installments 2 to 36, full and recurring
none (payment_ set to null).Allowed values: |
payment_deposit_type | string | null | optional | No description. Allowed values: |
payment_deposit_value | number | null | optional | No description. |
payment_installments_count | integer | null | optional | No description. |
payment_interval_days | integer | optional | No description. |
payment_execution_mode | string | optional | automatic = installments are charged to the card off-session; manual = payments
received (bank transfer, Interac) are recorded by the sales rep, and nothing is charged. Value
outside the list → 400 validation_.Allowed values: |
signature_payment_order | string | optional | Signature ↔ payment order on the public page. Editable while the quote is
a draft; once it has been sent → 409 signature_. Value
outside the list → 400 validation_.Allowed values: |
tax_exempt_reason | string | null | optional | Written reason for a tax-exempt sale; null makes the quote taxed again. An
empty string or one longer than 200 characters → 400 validation_. Totals
are recalculated server-side when it changes. Frozen once the quote is no longer
a draft (409 quote_). |
status | string | optional | Closes the quote: declined (the lead declined it) or cancelled. The other
statuses are never set through PATCH: sent comes from
POST / (the email goes out), viewed and signed from the
lead, expired from the validity date. Value outside the list → 400
validation_. A signed or paid quote can no longer be closed → 409
status_ (nothing is written). While the lead's bank debit is in
progress → 409 payment_, temporary (nothing is written).Allowed values: |
Responses
| Status | Description |
|---|---|
200 | Quote updated. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
409 | Conflict with the resource's state.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X PATCH 'https://api.capturia.io/v1/quotes/{id}' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json' \
-d '{
"prospect_name": "Alexandre Tremblay",
"valid_until": "2026-07-31",
"payment_terms": "Net 60"
}'/v1/quotes/{id}/sendSend a quote to the lead
Emails the quote to the lead, through the same service as the
dashboard's “Send” button: sent from the assigned sales rep (otherwise
from the business), with a link to the quote's public page, then
status= and sent_ are set. Only a draft can be sent; nothing
goes out again for a quote that was already sent.
The price guarantee starts when the quote is sent: valid_ restarts
from the sending day with the length the draft set (from its creation to
its date, Montreal time, at least one day). The email states this date,
this send's response returns it, and GET / lists it afterwards.
A quote without a contact (lead entered without a contact) is first linked to the lead's contact: found by their email or phone number, otherwise created — never a duplicate. The email then opens its thread in the Inbox. The created contact stays in the API key's account, and its creation triggers the automations and CRM sync of a new contact.
Rejections
404 not_: the account has no quote with this ID.found 409 already_: the quote is signed.signed 409 quote_: the quote was cancelled.cancelled 409 already_: the quote was already sent.sent 409 quote_: the quote is no longer a draft (for example, it expired).status_ changed 409 quote_: the quote is driven by a contract; it is sent and signed with it.driven_ by_ contract 409 quote_: a proposal page carries the quote; it is sent from its page, never on its own.carried_ by_ page 409 revision_: the quote this new version replaces was accepted, signed or paid in the meantime; it is not sent.original_ taken 409 send_: a send of this quote is already in progress.in_ progress 409 send_: a previous send could not be confirmed; it is not retried.outcome_ unknown 409 recipient_: the lead unsubscribed.unsubscribed 409 sender_: the assigned sales rep has no valid sending address.unavailable 422 no_/prospect_ email 422 invalid_: the lead's email is missing or invalid.prospect_ email 422 unpriced_,lines 422 prices_,to_ verify 422 lines_,to_ settle 422 untaxed_,quote 422 monthly_,requires_ agreement 422 agreement_,off_ price 422 deposit_: content guard.not_ payable 422 no_: the quote asks for a payment, but the account can't collect in any way (no Stripe connected, no transfer instructions).payment_ method 422 contract_: the offer's contract setting requires a contract, and the quote is “payment only” (it would be paid without signing anything).required 422 launch_: the quote's agreement has a payment or a monthly fee that starts at Launch and no Launch date is written, or the written date can no longer be kept.date_ unsettled 422 conditions_: a term awaits the seller, management's approval or its text in the quote's language.unsettled 422 offer_: the quote's language changed and its offer (lines, options, terms) hasn't been translated and confirmed by the seller yet.language_ mismatch
No body is required, but the
Content- header is (415 invalid_
otherwise).
quotes:writePath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Request body
Optional body — no fields are used today (reserved for future use).
Responses
| Status | Description |
|---|---|
200 | Quote sent to the lead. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
409 | Conflict with the quote's state.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
422 | Request refused.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X POST 'https://api.capturia.io/v1/quotes/{id}/send' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'