Quotes

Emails a draft quote to its contact, with the quote as a PDF attachment and a link to public_url, where they read it, then sign to accept or decline. Accepting creates an invoice, for a subscription price when the quote is recurring, and marks the deal won. Sending moves the deal forward to the account's quote_sent stage (GET /deal_stages) when the deal is in an earlier stage. Unless quote_reminder_emails is off in the checkout configuration, the contact is reminded once if they have not opened it after 3 days, and once 3 days before it expires. Refuses with code not_draft, no_lines, total_too_low or no_contact_email.

post/quotes/{id}/send

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Response

Quote sent

Quote required
id, string required
object, string required
number, string required
status, 'draft' | 'sent' | 'accepted' | 'declined' | 'expired' | 'canceled' required
title, string required
message, string nullable required
terms, string nullable required
currency, string required
billing, 'one_time' | 'recurring' required
interval, 'month' | 'year' | 'null' nullable required
expires_on, string date nullable required
sent_at, string date-time nullable required
accepted_at, string date-time nullable required
signer_name, string nullable required
document_digest, string nullable required
declined_at, string date-time nullable required
decline_reason, string nullable required
discount_amount_off, integer nullable required
discount_label, string nullable required
first_viewed_at, string date-time nullable required
last_viewed_at, string date-time nullable required
view_count, integer required
reminder_sent_at, string date-time nullable required
unviewed_nudge_sent_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required
lines, QuoteLine[] required
subtotal, number required
discount_percent_off, number nullable required
discount_amount, number required
total, number required
tax_note, 'prices_include_tax' | 'tax_added_at_checkout' | 'null' nullable required
public_url, string nullable required
pdf_url, string nullable required
contact, union required

ID by default, full object when expanded

deal, union

ID by default, full object when expanded

invoice, union

ID by default, full object when expanded

Changes

    • info

      added the required property invoice/oneOf[#/components/schemas/Invoice]/order/oneOf[#/components/schemas/Order]/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sells to the response with the status

    • info

      added the required property invoice/oneOf[#/components/schemas/Invoice]/order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/price_variants/items/cross_sells to the response with the status

    • info

      added the required property invoice/oneOf[#/components/schemas/Invoice]/order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/tax_code to the response with the status

    2 more changes in this revision