Capturia measures its ads and site traffic with the Meta pixel and Google Analytics. You can decline at any time. Learn more

FR

Quotes

4 endpoints

get/v1/quotes

List quotes

Returns the paginated list of the account's quotes (cursor v2). Stable sort created_at DESC, id DESC; with updated_after or updated_before, the list is sorted by ascending updated_at, broken by id.

Archived quotes (archived_at IS NOT NULL) 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)
Required scopes: quotes:read

Query parameters

NameTypeRequiredDescription
cursorstring | nulloptionalOpaque pagination cursor: pass the pagination.next_cursor value from the previous page.
limitintegeroptionalMaximum number of results per page (default 20, max 100). Above that → 400 invalid_request.
created_afterstringoptionalFilter: only resources created after this date (inclusive).
created_beforestringoptionalFilter: only resources created before this date (inclusive).
updated_afterstringoptionalFilter: only resources modified after this date (inclusive). With an updated_* bound, the list is sorted by ascending updated_at (oldest change first), tie-broken by id. Restart from the updated_at 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_field_mismatch). A list that leaves archived resources out (bookings, quotes) returns them in this read with their archived_at: that is how a withdrawal is read.
updated_beforestringoptionalFilter: only resources modified before this date (inclusive). Sorts the list like updated_after.
statusstringoptionalExact match on the quote lifecycle.

Responses

StatusDescription
200

Paginated list of quotes.

400

Invalid request. code tells apart the refusals the operation returns under this status, and each example shows one.

invalid_requestlimit · exceeds_max
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "field": "limit",
      "reason": "exceeds_max",
      "max": 100
    }
  }
}
invalid_requestupdated_after · invalid_value
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "field": "updated_after",
      "reason": "invalid_value"
    }
  }
}
invalid_requestcursor · cursor_field_mismatch
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "field": "cursor",
      "reason": "cursor_field_mismatch"
    }
  }
}
invalid_requestcursor · cursor_invalid_format
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "field": "cursor",
      "reason": "cursor_invalid_format"
    }
  }
}
401

The API key is missing, unknown or expired. code tells the three causes apart: missing_api_key (no Authorization: Bearer header), invalid_api_key (unknown or revoked key, or invalid format) and expired_api_key (expiration date has passed).

missing_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "missing_api_key",
    "message": "No API key was provided.",
    "hint": "Add an Authorization header in the form: Bearer cap_live_<your_key>",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#missing_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "API key is invalid or has been revoked.",
    "hint": "Verify the key in your dashboard or generate a new one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#invalid_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
expired_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "expired_api_key",
    "message": "API key has expired.",
    "hint": "Roll the key from the dashboard to generate a new valid one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#expired_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
403

Authorization refused. code tells apart the refusals the operation returns under this status, and each example shows one.

browser_not_allowed
{
  "error": {
    "type": "authorization_error",
    "code": "browser_not_allowed",
    "message": "API keys must be used from a server, never from a browser.",
    "hint": "The request carries an `Origin` header: call the API from your server, where the key stays secret.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#browser_not_allowed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
account_suspended
{
  "error": {
    "type": "authorization_error",
    "code": "account_suspended",
    "message": "Access to this account is suspended by the Capturia team.",
    "hint": "The refusal comes from the account, not the key. While the suspension lasts, no request is accepted: contact the Capturia team.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#account_suspended",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
feature_not_availablepublic_api
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "public_api"
    }
  }
}
insufficient_scope
{
  "error": {
    "type": "authorization_error",
    "code": "insufficient_scope",
    "message": "This API key does not contain the required scope for this endpoint.",
    "hint": "This key is missing the `quotes:read` scope. Create a new key with the \"Read only\" preset or add the scope via the dashboard.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#scopes",
    "dashboard_url": "https://capturia.io/platform/dashboard/admin/integrations/api-keys/6f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f?tab=permissions",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "required_scope": "quotes:read",
      "current_scopes": [
        "leads:capture"
      ],
      "suggested_preset": "read_only"
    }
  }
}
feature_not_availablequotes
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "quotes"
    }
  }
}
429

Rate limit reached. rate_limit_exceeded: the key's hourly quota is used up. too_many_attempts: too many invalid keys presented from this IP address (brute-force protection). In both cases, Retry-After gives the delay in seconds.

rate_limit_exceeded
{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded.",
    "hint": "Retry after the number of seconds in retry_after_seconds, and consider implementing exponential backoff.",
    "doc_url": "https://capturia.io/en/developers/api/v1/rate-limits",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit": 100,
      "count": 100,
      "limit_type": "per_key",
      "retry_after_seconds": 42
    }
  }
}
too_many_attempts
{
  "error": {
    "type": "rate_limit_error",
    "code": "too_many_attempts",
    "message": "Too many invalid authentication attempts from this IP.",
    "hint": "Wait the period indicated by retry_after_seconds before trying again.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#brute-force",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit_type": "brute_force",
      "retry_after_seconds": 300
    }
  }
}
500

Unexpected server error. Always include the request_id when contacting support.

internal_error
{
  "error": {
    "type": "server_error",
    "code": "internal_error",
    "message": "Server error. The Capturia team has been notified.",
    "hint": "If this persists, contact support and include the request_id from this response.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#internal_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
501

Test keys (cap_test_) aren't served yet: only cap_live_ keys are accepted.

not_implemented
{
  "error": {
    "type": "server_error",
    "code": "not_implemented",
    "message": "This feature is not yet implemented.",
    "hint": "Check the API documentation for available features and the changelog for upcoming releases.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_implemented",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
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 Retry-After delay.

service_unavailable
{
  "error": {
    "type": "server_error",
    "code": "service_unavailable",
    "message": "Service temporarily unavailable.",
    "hint": "Retry after the period indicated by Retry-After.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#service_unavailable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}

Example request

curl -X GET 'https://api.capturia.io/v1/quotes' \
  -H 'Authorization: Bearer cap_live_<your-key>' \
  -H 'Content-Type: application/json'
post/v1/quotes

Create a quote

Creates a draft quote (status="draft") through the same creation path as the dashboard: Capturia assigns the number (quote_number, the account's sequence, never a duplicate) and applies the account's defaults (validity, payment terms, tax profile, deposit policy). A provided quote_number is rejected (400 validation_error, reason read_only).

contact_id links the quote to its contact (/v1/contacts): each omitted prospect_* field is read from the contact, and each field you provide takes precedence. line_items writes the line items in the same operation; the server computes the amounts. To send the quote to the lead, use POST /v1/quotes/{id}/send.

Idempotency

The Idempotency-Key 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_conflict (details.reason: payload_mismatch), as does a request whose key is still being processed (in_flight, with Retry-After). A key outside the expected format (16 to 128 characters among A-Z, a-z, 0-9, _ and -) returns 400 invalid_request. A rejection (400, 403) is not stored: the key remains usable.

Required scopes: quotes:write

Headers

NameTypeRequiredDescription
Idempotency-KeystringoptionalIdempotency key: 16 to 128 [A-Za-z0-9_-] characters (a UUID v4 or a ULID works). A key of any other shape is refused with 400 invalid_request (details.field: idempotency-key); 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-Replayed: true header, without repeating the operation; the same key with a different payload is refused with 409 idempotency_conflict. Stored for 24 h. Optional but recommended.

Request body

PropertyTypeRequiredDescription
contact_idstring | nulloptionalThe account's contact (/v1/contacts) 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_error (reason not_found_in_tenant).
prospect_namestring | nulloptionalThe 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_emailstring | nulloptionalThe prospect's email. Its format is checked when sending: POST /v1/quotes/{id}/send rejects an invalid email (422 invalid_prospect_email).
prospect_phonestring | nulloptionalNo description.
prospect_companystring | nulloptionalThe 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_addressstring | nulloptionalFree-form mailing address.
languagestringoptionalLanguage of the quote (public page, PDF, sending email). Defaults to fr.

Allowed values: fr, en

valid_untilstring | nulloptionalPrice guarantee deadline (YYYY-MM-DD). 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 /v1/quotes/{id}/send) carries over to the sending day (see Quote.valid_until).
payment_termsstring | nulloptionalPayment terms (free text). Omitted: the account's terms. null: none.
line_itemsobject[]optionalThe quote's line items, written in the same operation; the server computes the amounts.
line_items[].descriptionstringrequiredThe line's description, as shown on the quote.
line_items[].quantitynumberoptionalQuantity; defaults to 1.
line_items[].unit_pricenumberoptionalUnit price before taxes; defaults to 0.
line_items[].unit_labelstring | nulloptionalDisplayed unit; when omitted, the default unit in the quote's language.
line_items[].is_taxablebooleanoptionalTaxable line; defaults to true.
line_items[].catalog_item_idstring | nulloptionalService from the account's catalog that the line is based on.
internal_notesstringoptionalInternal notes, not visible to the prospect.
sales_rep_idstring | nulloptionalAssigned sales rep; null or omitted = none.
tax_profile_idstring | nulloptionalApplied tax profile (GST/QST); null or omitted = the account's default profile.
signature_payment_orderstringoptionalSignature ↔ payment order on the public page. Omitted → the account's default setting (snapshot taken at creation). Value outside the list → 400 validation_error.

Allowed values: signature_then_payment, payment_then_signature, payment_only, signature_only

tax_exempt_reasonstring | nulloptionalWritten reason for a tax-exempt sale (see Quote.tax_exempt_reason).

Responses

StatusDescription
201

Quote created.

400

Invalid request. code tells apart the refusals the operation returns under this status, and each example shows one.

invalid_request
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_encoding
{
  "error": {
    "type": "validation_error",
    "code": "invalid_encoding",
    "message": "Request encoding must be UTF-8.",
    "hint": "Use Content-Type: application/json; charset=utf-8.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#encoding",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_json
{
  "error": {
    "type": "validation_error",
    "code": "invalid_json",
    "message": "The request body is not valid JSON.",
    "hint": "Check the JSON syntax (quotes, commas, braces) and its UTF-8 encoding.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_json",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_body
{
  "error": {
    "type": "validation_error",
    "code": "invalid_body",
    "message": "The request body must be a JSON object.",
    "hint": "Send an object (`{ ... }`): this endpoint accepts no array, string or number.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_body",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_requestidempotency-key · invalid_format
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "field": "idempotency-key",
      "reason": "invalid_format"
    }
  }
}
validation_errorvalid_until · invalid_format
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "valid_until",
        "reason": "invalid_format"
      }
    ]
  }
}
validation_errorquote_number · read_only
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "quote_number",
        "reason": "read_only"
      }
    ]
  }
}
validation_errorcontact_id · not_found_in_tenant
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "contact_id",
        "reason": "not_found_in_tenant"
      }
    ]
  }
}
401

The API key is missing, unknown or expired. code tells the three causes apart: missing_api_key (no Authorization: Bearer header), invalid_api_key (unknown or revoked key, or invalid format) and expired_api_key (expiration date has passed).

missing_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "missing_api_key",
    "message": "No API key was provided.",
    "hint": "Add an Authorization header in the form: Bearer cap_live_<your_key>",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#missing_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "API key is invalid or has been revoked.",
    "hint": "Verify the key in your dashboard or generate a new one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#invalid_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
expired_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "expired_api_key",
    "message": "API key has expired.",
    "hint": "Roll the key from the dashboard to generate a new valid one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#expired_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
403

Authorization refused. code tells apart the refusals the operation returns under this status, and each example shows one.

browser_not_allowed
{
  "error": {
    "type": "authorization_error",
    "code": "browser_not_allowed",
    "message": "API keys must be used from a server, never from a browser.",
    "hint": "The request carries an `Origin` header: call the API from your server, where the key stays secret.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#browser_not_allowed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
account_suspended
{
  "error": {
    "type": "authorization_error",
    "code": "account_suspended",
    "message": "Access to this account is suspended by the Capturia team.",
    "hint": "The refusal comes from the account, not the key. While the suspension lasts, no request is accepted: contact the Capturia team.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#account_suspended",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
feature_not_availablepublic_api
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "public_api"
    }
  }
}
insufficient_scope
{
  "error": {
    "type": "authorization_error",
    "code": "insufficient_scope",
    "message": "This API key does not contain the required scope for this endpoint.",
    "hint": "This key is missing the `quotes:write` scope. Create a new key with the \"Read + write\" preset or add the scope via the dashboard.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#scopes",
    "dashboard_url": "https://capturia.io/platform/dashboard/admin/integrations/api-keys/6f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f?tab=permissions",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "required_scope": "quotes:write",
      "current_scopes": [
        "leads:capture"
      ],
      "suggested_preset": "read_write",
      "required_permission": "quotes.send"
    }
  }
}
feature_not_availablequotes
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "quotes"
    }
  }
}
409

Conflict with the resource's state. code tells apart the refusals the operation returns under this status, and each example shows one.

idempotency_conflictpayload_mismatch
{
  "error": {
    "type": "idempotency_error",
    "code": "idempotency_conflict",
    "message": "Idempotency key conflict.",
    "hint": "Either the same Idempotency-Key was used with a different payload, or a request with this key is still in progress. Use a fresh Idempotency-Key per logical request.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#idempotency",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "reason": "payload_mismatch"
    }
  }
}
idempotency_conflictin_flight
{
  "error": {
    "type": "idempotency_error",
    "code": "idempotency_conflict",
    "message": "Idempotency key conflict.",
    "hint": "Either the same Idempotency-Key was used with a different payload, or a request with this key is still in progress. Use a fresh Idempotency-Key per logical request.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#idempotency",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "reason": "in_flight"
    }
  }
}
413

The request body exceeds 1 MB (1,048,576 bytes). details.max_bytes gives the limit, and details.received_bytes the size announced by Content-Length when the request declares it.

payload_too_large
{
  "error": {
    "type": "validation_error",
    "code": "payload_too_large",
    "message": "Request body exceeds the 1 MB limit.",
    "hint": "Split your request into smaller batches.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#body-size",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "max_bytes": 1048576,
      "received_bytes": 1572864
    }
  }
}
415

The Content-Type header is missing, or isn't application/json.

invalid_content_type
{
  "error": {
    "type": "validation_error",
    "code": "invalid_content_type",
    "message": "Unsupported Content-Type.",
    "hint": "Send Content-Type: application/json on POST/PUT/PATCH requests.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#content-type",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
429

Rate limit reached. rate_limit_exceeded: the key's hourly quota is used up. too_many_attempts: too many invalid keys presented from this IP address (brute-force protection). In both cases, Retry-After gives the delay in seconds.

rate_limit_exceeded
{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded.",
    "hint": "Retry after the number of seconds in retry_after_seconds, and consider implementing exponential backoff.",
    "doc_url": "https://capturia.io/en/developers/api/v1/rate-limits",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit": 100,
      "count": 100,
      "limit_type": "per_key",
      "retry_after_seconds": 42
    }
  }
}
too_many_attempts
{
  "error": {
    "type": "rate_limit_error",
    "code": "too_many_attempts",
    "message": "Too many invalid authentication attempts from this IP.",
    "hint": "Wait the period indicated by retry_after_seconds before trying again.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#brute-force",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit_type": "brute_force",
      "retry_after_seconds": 300
    }
  }
}
500

Unexpected server error. Always include the request_id when contacting support.

internal_error
{
  "error": {
    "type": "server_error",
    "code": "internal_error",
    "message": "Server error. The Capturia team has been notified.",
    "hint": "If this persists, contact support and include the request_id from this response.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#internal_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
501

Test keys (cap_test_) aren't served yet: only cap_live_ keys are accepted.

not_implemented
{
  "error": {
    "type": "server_error",
    "code": "not_implemented",
    "message": "This feature is not yet implemented.",
    "hint": "Check the API documentation for available features and the changelog for upcoming releases.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_implemented",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
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 Retry-After delay.

service_unavailable
{
  "error": {
    "type": "server_error",
    "code": "service_unavailable",
    "message": "Service temporarily unavailable.",
    "hint": "Retry after the period indicated by Retry-After.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#service_unavailable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}

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
    }
  ]
}'
patch/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_fields.

Amounts (subtotal, tps_amount, tvq_amount, 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 /v1/quotes/{id}/send (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_locked). While the lead's bank debit is in progress, closing waits for the bank's answer (409 payment_in_progress, temporary). Closing must be done on its own: status combined with other fields returns 400 validation_error (reason exclusive_field). A signed quote can no longer be updated (409 already_signed).

Once sent, a quote keeps what the lead received: its payment plan, taxes and payment terms no longer change (409 quote_offer_sent). 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_at IS NOT NULL) cannot be updated — returns 404 not_found.

Required scopes: quotes:write

Path parameters

NameTypeRequiredDescription
idstringrequiredUUID of the resource.

Request body

PropertyTypeRequiredDescription
prospect_namestring | nulloptionalThe 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_fields).
prospect_emailstring | nulloptionalThe prospect's email. Its format is checked when sending: POST /v1/quotes/{id}/send rejects an invalid email (422 invalid_prospect_email).
prospect_phonestring | nulloptionalNo description.
prospect_companystring | nulloptionalThe 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_fields).
prospect_addressstring | nulloptionalNo description.
valid_untilstring | nulloptionalPrice guarantee deadline (YYYY-MM-DD), null for none. On a draft, the length it sets is carried over to the day of the first send (see Quote.valid_until); on a quote already sent, the date is written as is.
payment_termsstring | nulloptionalPayment terms shown to the prospect. Frozen once the quote is no longer a draft (409 quote_offer_sent).
internal_notesstring | nulloptionalNo description.
sales_rep_idstring | nulloptionalNo description.
tax_profile_idstring | nulloptionalThe quote's tax profile. Frozen once the quote is no longer a draft (409 quote_offer_sent).
payment_plan_typestringoptionalPayment 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_offer_sent), and locked once the first payment is collected (409 payment_plan_locked). The plan resulting from the request and the fields already set must be consistent, otherwise 400 validation_error, where details names each field at issue: required (the plan type requires it), not_allowed (the plan type requires it to be null), out_of_range (installment count or interval out of bounds). Only deposit carries payment_deposit_type and payment_deposit_value; deposit has 1 to 36 installments, installments 2 to 36, full and recurring none (payment_installments_count set to null).

Allowed values: full, deposit, installments, recurring

payment_deposit_typestring | nulloptionalNo description.

Allowed values: percent, fixed

payment_deposit_valuenumber | nulloptionalNo description.
payment_installments_countinteger | nulloptionalNo description.
payment_interval_daysintegeroptionalNo description.
payment_execution_modestringoptionalautomatic = 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_error.

Allowed values: automatic, manual

signature_payment_orderstringoptionalSignature ↔ payment order on the public page. Editable while the quote is a draft; once it has been sent → 409 signature_payment_order_locked. Value outside the list → 400 validation_error.

Allowed values: signature_then_payment, payment_then_signature, payment_only, signature_only

tax_exempt_reasonstring | nulloptionalWritten reason for a tax-exempt sale; null makes the quote taxed again. An empty string or one longer than 200 characters → 400 validation_error. Totals are recalculated server-side when it changes. Frozen once the quote is no longer a draft (409 quote_offer_sent).
statusstringoptionalCloses the quote: declined (the lead declined it) or cancelled. The other statuses are never set through PATCH: sent comes from POST /v1/quotes/{id}/send (the email goes out), viewed and signed from the lead, expired from the validity date. Value outside the list → 400 validation_error. A signed or paid quote can no longer be closed → 409 status_locked (nothing is written). While the lead's bank debit is in progress → 409 payment_in_progress, temporary (nothing is written).

Allowed values: declined, cancelled

Responses

StatusDescription
200

Quote updated.

400

Invalid request. code tells apart the refusals the operation returns under this status, and each example shows one.

invalid_request
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_encoding
{
  "error": {
    "type": "validation_error",
    "code": "invalid_encoding",
    "message": "Request encoding must be UTF-8.",
    "hint": "Use Content-Type: application/json; charset=utf-8.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#encoding",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_json
{
  "error": {
    "type": "validation_error",
    "code": "invalid_json",
    "message": "The request body is not valid JSON.",
    "hint": "Check the JSON syntax (quotes, commas, braces) and its UTF-8 encoding.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_json",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_body
{
  "error": {
    "type": "validation_error",
    "code": "invalid_body",
    "message": "The request body must be a JSON object.",
    "hint": "Send an object (`{ ... }`): this endpoint accepts no array, string or number.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_body",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
no_fields
{
  "error": {
    "type": "validation_error",
    "code": "no_fields",
    "message": "No updatable field was provided.",
    "hint": "Send at least one of the endpoint's updatable fields, listed in the reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#no_fields",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
validation_errorvalid_until · invalid_format
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "valid_until",
        "reason": "invalid_format"
      }
    ]
  }
}
validation_errorstatus · exclusive_field
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "status",
        "reason": "exclusive_field"
      }
    ]
  }
}
validation_errorsales_rep_id · not_found_in_tenant
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "sales_rep_id",
        "reason": "not_found_in_tenant"
      }
    ]
  }
}
validation_errorpayment_deposit_type · required
{
  "error": {
    "type": "validation_error",
    "code": "validation_error",
    "message": "Request validation failed.",
    "hint": "`details` names each field to fix and the reason it was refused.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#validation_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": [
      {
        "field": "payment_deposit_type",
        "reason": "required"
      },
      {
        "field": "payment_installments_count",
        "reason": "required"
      }
    ]
  }
}
401

The API key is missing, unknown or expired. code tells the three causes apart: missing_api_key (no Authorization: Bearer header), invalid_api_key (unknown or revoked key, or invalid format) and expired_api_key (expiration date has passed).

missing_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "missing_api_key",
    "message": "No API key was provided.",
    "hint": "Add an Authorization header in the form: Bearer cap_live_<your_key>",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#missing_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "API key is invalid or has been revoked.",
    "hint": "Verify the key in your dashboard or generate a new one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#invalid_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
expired_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "expired_api_key",
    "message": "API key has expired.",
    "hint": "Roll the key from the dashboard to generate a new valid one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#expired_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
403

Authorization refused. code tells apart the refusals the operation returns under this status, and each example shows one.

browser_not_allowed
{
  "error": {
    "type": "authorization_error",
    "code": "browser_not_allowed",
    "message": "API keys must be used from a server, never from a browser.",
    "hint": "The request carries an `Origin` header: call the API from your server, where the key stays secret.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#browser_not_allowed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
account_suspended
{
  "error": {
    "type": "authorization_error",
    "code": "account_suspended",
    "message": "Access to this account is suspended by the Capturia team.",
    "hint": "The refusal comes from the account, not the key. While the suspension lasts, no request is accepted: contact the Capturia team.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#account_suspended",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
feature_not_availablepublic_api
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "public_api"
    }
  }
}
insufficient_scope
{
  "error": {
    "type": "authorization_error",
    "code": "insufficient_scope",
    "message": "This API key does not contain the required scope for this endpoint.",
    "hint": "This key is missing the `quotes:write` scope. Create a new key with the \"Read + write\" preset or add the scope via the dashboard.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#scopes",
    "dashboard_url": "https://capturia.io/platform/dashboard/admin/integrations/api-keys/6f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f?tab=permissions",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "required_scope": "quotes:write",
      "current_scopes": [
        "leads:capture"
      ],
      "suggested_preset": "read_write",
      "required_permission": "quotes.send"
    }
  }
}
feature_not_availablequotes
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "quotes"
    }
  }
}
404

Resource not found. code tells apart the refusals the operation returns under this status, and each example shows one.

not_found
{
  "error": {
    "type": "not_found_error",
    "code": "not_found",
    "message": "The requested resource was not found.",
    "hint": "`details.resource` names the resource looked up. Check its ID: it may have been deleted, or it belongs to another account.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_found",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "resource": "quote"
    }
  }
}
409

Conflict with the resource's state. code tells apart the refusals the operation returns under this status, and each example shows one.

already_signed
{
  "error": {
    "type": "conflict_error",
    "code": "already_signed",
    "message": "A signed quote can no longer be updated.",
    "hint": "Read the quote to see its current state.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#already_signed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
status_locked
{
  "error": {
    "type": "conflict_error",
    "code": "status_locked",
    "message": "A signed, paid or already closed quote can be neither declined nor cancelled.",
    "hint": "Read the quote to see its current state.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#status_locked",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
payment_in_progress
{
  "error": {
    "type": "conflict_error",
    "code": "payment_in_progress",
    "message": "A bank debit is in progress on this quote: it can be neither declined nor cancelled until the bank responds.",
    "hint": "Try again once the bank has confirmed or refused the debit, usually within a few business days.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#payment_in_progress",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
payment_plan_locked
{
  "error": {
    "type": "conflict_error",
    "code": "payment_plan_locked",
    "message": "The payment plan is locked once a payment has been collected.",
    "hint": "Remove the payment plan from the request to update the quote's other fields.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#payment_plan_locked",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
signature_payment_order_locked
{
  "error": {
    "type": "conflict_error",
    "code": "signature_payment_order_locked",
    "message": "The signature and payment order is locked once the quote has been sent.",
    "hint": "Remove this order from the request to update the quote's other fields.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#signature_payment_order_locked",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
quote_driven_by_contract
{
  "error": {
    "type": "conflict_error",
    "code": "quote_driven_by_contract",
    "message": "This quote is driven by a contract: its lines, payment plan and taxes are edited in the contract.",
    "hint": "Remove these fields from the request, or edit the contract that drives the quote.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_driven_by_contract",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
quote_offer_sent
{
  "error": {
    "type": "conflict_error",
    "code": "quote_offer_sent",
    "message": "This quote is no longer a draft: its payment plan, taxes and payment terms no longer change.",
    "hint": "Remove these fields from the request. To correct the offer of a quote still open, revise it from its page: a new version replaces it when sent.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_offer_sent",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
413

The request body exceeds 1 MB (1,048,576 bytes). details.max_bytes gives the limit, and details.received_bytes the size announced by Content-Length when the request declares it.

payload_too_large
{
  "error": {
    "type": "validation_error",
    "code": "payload_too_large",
    "message": "Request body exceeds the 1 MB limit.",
    "hint": "Split your request into smaller batches.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#body-size",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "max_bytes": 1048576,
      "received_bytes": 1572864
    }
  }
}
415

The Content-Type header is missing, or isn't application/json.

invalid_content_type
{
  "error": {
    "type": "validation_error",
    "code": "invalid_content_type",
    "message": "Unsupported Content-Type.",
    "hint": "Send Content-Type: application/json on POST/PUT/PATCH requests.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#content-type",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
429

Rate limit reached. rate_limit_exceeded: the key's hourly quota is used up. too_many_attempts: too many invalid keys presented from this IP address (brute-force protection). In both cases, Retry-After gives the delay in seconds.

rate_limit_exceeded
{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded.",
    "hint": "Retry after the number of seconds in retry_after_seconds, and consider implementing exponential backoff.",
    "doc_url": "https://capturia.io/en/developers/api/v1/rate-limits",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit": 100,
      "count": 100,
      "limit_type": "per_key",
      "retry_after_seconds": 42
    }
  }
}
too_many_attempts
{
  "error": {
    "type": "rate_limit_error",
    "code": "too_many_attempts",
    "message": "Too many invalid authentication attempts from this IP.",
    "hint": "Wait the period indicated by retry_after_seconds before trying again.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#brute-force",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit_type": "brute_force",
      "retry_after_seconds": 300
    }
  }
}
500

Unexpected server error. Always include the request_id when contacting support.

internal_error
{
  "error": {
    "type": "server_error",
    "code": "internal_error",
    "message": "Server error. The Capturia team has been notified.",
    "hint": "If this persists, contact support and include the request_id from this response.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#internal_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
501

Test keys (cap_test_) aren't served yet: only cap_live_ keys are accepted.

not_implemented
{
  "error": {
    "type": "server_error",
    "code": "not_implemented",
    "message": "This feature is not yet implemented.",
    "hint": "Check the API documentation for available features and the changelog for upcoming releases.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_implemented",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
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 Retry-After delay.

service_unavailable
{
  "error": {
    "type": "server_error",
    "code": "service_unavailable",
    "message": "Service temporarily unavailable.",
    "hint": "Retry after the period indicated by Retry-After.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#service_unavailable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}

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"
}'
post/v1/quotes/{id}/send

Send 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="sent" and sent_at 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_until 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 /v1/quotes 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_found: the account has no quote with this ID.
  • 409 already_signed: the quote is signed.
  • 409 quote_cancelled: the quote was cancelled.
  • 409 already_sent: the quote was already sent.
  • 409 quote_status_changed: the quote is no longer a draft (for example, it expired).
  • 409 quote_driven_by_contract: the quote is driven by a contract; it is sent and signed with it.
  • 409 quote_carried_by_page: a proposal page carries the quote; it is sent from its page, never on its own.
  • 409 revision_original_taken: the quote this new version replaces was accepted, signed or paid in the meantime; it is not sent.
  • 409 send_in_progress: a send of this quote is already in progress.
  • 409 send_outcome_unknown: a previous send could not be confirmed; it is not retried.
  • 409 recipient_unsubscribed: the lead unsubscribed.
  • 409 sender_unavailable: the assigned sales rep has no valid sending address.
  • 422 no_prospect_email / 422 invalid_prospect_email: the lead's email is missing or invalid.
  • 422 unpriced_lines, 422 prices_to_verify, 422 lines_to_settle, 422 untaxed_quote, 422 monthly_requires_agreement, 422 agreement_off_price, 422 deposit_not_payable: content guard.
  • 422 no_payment_method: the quote asks for a payment, but the account can't collect in any way (no Stripe connected, no transfer instructions).
  • 422 contract_required: the offer's contract setting requires a contract, and the quote is “payment only” (it would be paid without signing anything).
  • 422 launch_date_unsettled: 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.
  • 422 conditions_unsettled: a term awaits the seller, management's approval or its text in the quote's language.
  • 422 offer_language_mismatch: the quote's language changed and its offer (lines, options, terms) hasn't been translated and confirmed by the seller yet.

No body is required, but the Content-Type: application/json header is (415 invalid_content_type otherwise).

Required scopes: quotes:write

Path parameters

NameTypeRequiredDescription
idstringrequiredUUID of the resource.

Request body

Optional body — no fields are used today (reserved for future use).

Responses

StatusDescription
200

Quote sent to the lead.

400

Invalid request. code tells apart the refusals the operation returns under this status, and each example shows one.

invalid_request
{
  "error": {
    "type": "validation_error",
    "code": "invalid_request",
    "message": "Request format is invalid.",
    "hint": "Check that headers, body and JSON encoding match the API contract documented in the API Reference.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_request",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_encoding
{
  "error": {
    "type": "validation_error",
    "code": "invalid_encoding",
    "message": "Request encoding must be UTF-8.",
    "hint": "Use Content-Type: application/json; charset=utf-8.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#encoding",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
401

The API key is missing, unknown or expired. code tells the three causes apart: missing_api_key (no Authorization: Bearer header), invalid_api_key (unknown or revoked key, or invalid format) and expired_api_key (expiration date has passed).

missing_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "missing_api_key",
    "message": "No API key was provided.",
    "hint": "Add an Authorization header in the form: Bearer cap_live_<your_key>",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#missing_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "API key is invalid or has been revoked.",
    "hint": "Verify the key in your dashboard or generate a new one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#invalid_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
expired_api_key
{
  "error": {
    "type": "authentication_error",
    "code": "expired_api_key",
    "message": "API key has expired.",
    "hint": "Roll the key from the dashboard to generate a new valid one.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#expired_api_key",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
403

Authorization refused. code tells apart the refusals the operation returns under this status, and each example shows one.

browser_not_allowed
{
  "error": {
    "type": "authorization_error",
    "code": "browser_not_allowed",
    "message": "API keys must be used from a server, never from a browser.",
    "hint": "The request carries an `Origin` header: call the API from your server, where the key stays secret.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#browser_not_allowed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
account_suspended
{
  "error": {
    "type": "authorization_error",
    "code": "account_suspended",
    "message": "Access to this account is suspended by the Capturia team.",
    "hint": "The refusal comes from the account, not the key. While the suspension lasts, no request is accepted: contact the Capturia team.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#account_suspended",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
feature_not_availablepublic_api
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "public_api"
    }
  }
}
insufficient_scope
{
  "error": {
    "type": "authorization_error",
    "code": "insufficient_scope",
    "message": "This API key does not contain the required scope for this endpoint.",
    "hint": "This key is missing the `quotes:write` scope. Create a new key with the \"Read + write\" preset or add the scope via the dashboard.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#scopes",
    "dashboard_url": "https://capturia.io/platform/dashboard/admin/integrations/api-keys/6f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f?tab=permissions",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "required_scope": "quotes:write",
      "current_scopes": [
        "leads:capture"
      ],
      "suggested_preset": "read_write",
      "required_permission": "quotes.send"
    }
  }
}
feature_not_availablequotes
{
  "error": {
    "type": "authorization_error",
    "code": "feature_not_available",
    "message": "This feature is not included in your plan.",
    "hint": "The rejection comes from the account's plan, not the key. Contact your Capturia advisor to talk it over.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#plan",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "feature": "quotes"
    }
  }
}
404

Resource not found. code tells apart the refusals the operation returns under this status, and each example shows one.

not_found
{
  "error": {
    "type": "not_found_error",
    "code": "not_found",
    "message": "The requested resource was not found.",
    "hint": "`details.resource` names the resource looked up. Check its ID: it may have been deleted, or it belongs to another account.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_found",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "resource": "quote"
    }
  }
}
409

Conflict with the quote's state. send_in_progress: a send of this quote is in progress, read the quote in a few seconds to learn its outcome. The other codes are final for the quote's current state: retrying the send changes nothing until their cause is fixed.

quote_cancelled
{
  "error": {
    "type": "conflict_error",
    "code": "quote_cancelled",
    "message": "A cancelled quote cannot be sent.",
    "hint": "Create a new quote for this prospect.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_cancelled",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
already_signed
{
  "error": {
    "type": "conflict_error",
    "code": "already_signed",
    "message": "A quote that is already signed cannot be sent.",
    "hint": "Read the quote to see its current state.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#already_signed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
already_sent
{
  "error": {
    "type": "conflict_error",
    "code": "already_sent",
    "message": "This quote has already been sent.",
    "hint": "Read the quote to see its current state before any other action.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#already_sent",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
revision_original_taken
{
  "error": {
    "type": "conflict_error",
    "code": "revision_original_taken",
    "message": "The quote this new version replaces was accepted, signed or paid in the meantime: this version is not sent.",
    "hint": "The prospect already accepted the original quote: remove this version from the dashboard if it no longer serves a purpose.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#revision_original_taken",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
quote_driven_by_contract
{
  "error": {
    "type": "conflict_error",
    "code": "quote_driven_by_contract",
    "message": "This quote is driven by a contract: its lines, payment plan and taxes are edited in the contract.",
    "hint": "Remove these fields from the request, or edit the contract that drives the quote.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_driven_by_contract",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
quote_carried_by_page
{
  "error": {
    "type": "conflict_error",
    "code": "quote_carried_by_page",
    "message": "A proposal page carries this quote: it is sent from its page, never on its own.",
    "hint": "Send the proposal from the dashboard, or through an automation's “Send the proposal” step.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_carried_by_page",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
quote_status_changed
{
  "error": {
    "type": "conflict_error",
    "code": "quote_status_changed",
    "message": "The quote is no longer a draft (it may have expired): it was not sent.",
    "hint": "Read the quote to see its new state.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#quote_status_changed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
send_in_progress
{
  "error": {
    "type": "conflict_error",
    "code": "send_in_progress",
    "message": "A send of this quote is already in progress.",
    "hint": "Wait a few seconds, then read the quote to see the outcome of the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#send_in_progress",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
send_outcome_unknown
{
  "error": {
    "type": "conflict_error",
    "code": "send_outcome_unknown",
    "message": "A previous send of this quote could not be confirmed: it is not sent again.",
    "hint": "The prospect may already have received it. Check with them, then resend the quote from the dashboard if needed.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#send_outcome_unknown",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
recipient_unsubscribed
{
  "error": {
    "type": "conflict_error",
    "code": "recipient_unsubscribed",
    "message": "The recipient unsubscribed from this account's emails.",
    "hint": "No commercial email can be sent to them until they subscribe again themselves.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#recipient_unsubscribed",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
sender_unavailable
{
  "error": {
    "type": "conflict_error",
    "code": "sender_unavailable",
    "message": "The assigned seller has no valid sending address: the quote was not sent.",
    "hint": "Set up the seller's sending address, or assign the quote to another seller, then retry the request.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#sender_unavailable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
413

The request body exceeds 1 MB (1,048,576 bytes). details.max_bytes gives the limit, and details.received_bytes the size announced by Content-Length when the request declares it.

payload_too_large
{
  "error": {
    "type": "validation_error",
    "code": "payload_too_large",
    "message": "Request body exceeds the 1 MB limit.",
    "hint": "Split your request into smaller batches.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#body-size",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "max_bytes": 1048576,
      "received_bytes": 1572864
    }
  }
}
415

The Content-Type header is missing, or isn't application/json.

invalid_content_type
{
  "error": {
    "type": "validation_error",
    "code": "invalid_content_type",
    "message": "Unsupported Content-Type.",
    "hint": "Send Content-Type: application/json on POST/PUT/PATCH requests.",
    "doc_url": "https://capturia.io/en/developers/api/v1/conventions#content-type",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
422

Request refused. code tells apart the refusals the operation returns under this status, and each example shows one.

no_prospect_email
{
  "error": {
    "type": "business_rule_error",
    "code": "no_prospect_email",
    "message": "The quote has no prospect email.",
    "hint": "Add the prospect's email to the quote, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#no_prospect_email",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
invalid_prospect_email
{
  "error": {
    "type": "business_rule_error",
    "code": "invalid_prospect_email",
    "message": "The prospect email is not valid.",
    "hint": "Fix the prospect's email on the quote, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#invalid_prospect_email",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
unpriced_lines
{
  "error": {
    "type": "business_rule_error",
    "code": "unpriced_lines",
    "message": "Some line items still need a price.",
    "hint": "Give each line a price, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#unpriced_lines",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
prices_to_verify
{
  "error": {
    "type": "business_rule_error",
    "code": "prices_to_verify",
    "message": "Some prices on the quote need checking: no sentence from the meeting proves them.",
    "hint": "Confirm or correct these prices in the dashboard, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#prices_to_verify",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
lines_to_settle
{
  "error": {
    "type": "business_rule_error",
    "code": "lines_to_settle",
    "message": "Some lines on the quote are waiting for the seller's choice: several possible items, a product missing from the catalog, or a stated price that differs from the catalog.",
    "hint": "Settle these lines in the dashboard, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#lines_to_settle",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
untaxed_quote
{
  "error": {
    "type": "business_rule_error",
    "code": "untaxed_quote",
    "message": "The quote has no taxes.",
    "hint": "Assign a tax profile with its rates, or give the exemption reason in `tax_exempt_reason`, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#untaxed_quote",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
monthly_requires_agreement
{
  "error": {
    "type": "business_rule_error",
    "code": "monthly_requires_agreement",
    "message": "The quote has monthly lines, but its payment plan is not an agreement.",
    "hint": "A monthly fee is only paid through an agreement: open the quote in the dashboard and set its plan (or the option's) to “Agreement”, or bill those lines once, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#monthly_requires_agreement",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
agreement_off_price
{
  "error": {
    "type": "business_rule_error",
    "code": "agreement_off_price",
    "message": "The payment agreement no longer covers the quote price.",
    "hint": "The agreement's payments (the quote's, or an option's) no longer add up to its price: open the quote in the dashboard and choose “Adjust the payments to the price” in the agreement, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#agreement_off_price",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
deposit_not_payable
{
  "error": {
    "type": "business_rule_error",
    "code": "deposit_not_payable",
    "message": "The deposit leaves no payable schedule.",
    "hint": "Keep the deposit below the quote total and below each option's total.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#deposit_not_payable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
no_payment_method
{
  "error": {
    "type": "business_rule_error",
    "code": "no_payment_method",
    "message": "The account can't collect payments yet.",
    "hint": "Connect Stripe or write the transfer instructions in the dashboard's Sales document settings › Payment and welcome, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#no_payment_method",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
contract_required
{
  "error": {
    "type": "business_rule_error",
    "code": "contract_required",
    "message": "The offer's contract setting requires a contract.",
    "hint": "The quote would be paid without signing anything. Open the quote in the dashboard: choose an order with a signature in its Signature and payment card, or send it with its contract, then replay the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#contract_required",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
launch_date_unsettled
{
  "error": {
    "type": "business_rule_error",
    "code": "launch_date_unsettled",
    "message": "The quote's Launch date is missing or no longer holds.",
    "hint": "The quote's agreement has a payment or a monthly fee that starts at Launch, or its promised date can no longer be kept: open the quote in the dashboard, set the Launch date with the client, then retry the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#launch_date_unsettled",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
conditions_unsettled
{
  "error": {
    "type": "business_rule_error",
    "code": "conditions_unsettled",
    "message": "A term of the quote isn't settled yet.",
    "hint": "Open the quote in the dashboard: settle each term heard, have management approve a deviation and write each text in the quote's language, then replay the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#conditions_unsettled",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
offer_language_mismatch
{
  "error": {
    "type": "business_rule_error",
    "code": "offer_language_mismatch",
    "message": "The quote's offer is still in its former language.",
    "hint": "Open the quote in the dashboard: translate its lines, options and terms into the quote's language, confirm it on its Language card, then replay the send.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#offer_language_mismatch",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
429

Rate limit reached. rate_limit_exceeded: the key's hourly quota is used up. too_many_attempts: too many invalid keys presented from this IP address (brute-force protection). In both cases, Retry-After gives the delay in seconds.

rate_limit_exceeded
{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded.",
    "hint": "Retry after the number of seconds in retry_after_seconds, and consider implementing exponential backoff.",
    "doc_url": "https://capturia.io/en/developers/api/v1/rate-limits",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit": 100,
      "count": 100,
      "limit_type": "per_key",
      "retry_after_seconds": 42
    }
  }
}
too_many_attempts
{
  "error": {
    "type": "rate_limit_error",
    "code": "too_many_attempts",
    "message": "Too many invalid authentication attempts from this IP.",
    "hint": "Wait the period indicated by retry_after_seconds before trying again.",
    "doc_url": "https://capturia.io/en/developers/api/v1/authentication#brute-force",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
    "details": {
      "limit_type": "brute_force",
      "retry_after_seconds": 300
    }
  }
}
500

Unexpected server error. Always include the request_id when contacting support.

internal_error
{
  "error": {
    "type": "server_error",
    "code": "internal_error",
    "message": "Server error. The Capturia team has been notified.",
    "hint": "If this persists, contact support and include the request_id from this response.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#internal_error",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
501

Test keys (cap_test_) aren't served yet: only cap_live_ keys are accepted.

not_implemented
{
  "error": {
    "type": "server_error",
    "code": "not_implemented",
    "message": "This feature is not yet implemented.",
    "hint": "Check the API documentation for available features and the changelog for upcoming releases.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#not_implemented",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}
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 Retry-After delay.

service_unavailable
{
  "error": {
    "type": "server_error",
    "code": "service_unavailable",
    "message": "Service temporarily unavailable.",
    "hint": "Retry after the period indicated by Retry-After.",
    "doc_url": "https://capturia.io/en/developers/api/v1/errors#service_unavailable",
    "request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7"
  }
}

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'