Quotes

Updates a draft quote. Sending lines replaces every line. Send discount_percent_off: null or discount_amount_off: null to remove a discount. A sent quote is frozen and answers 422 with code quote_not_editable: cancel it and create a new one instead.

patch/quotes/{id}

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

Request body

QuoteRequest required
contact, string

Contact ID (con_...) the quote is for. Defaults to the deal's contact.

deal, string nullable

Deal ID (deal_...) the quote belongs to. Sending the quote moves a lead or qualified deal to proposal, and acceptance marks it won.

title, string
message, string nullable
terms, string nullable
currency, string
billing, 'one_time' | 'recurring'
interval, 'month' | 'year' | 'null' nullable

Billing period, required when billing is recurring

expires_on, string date nullable
discount_percent_off, number nullable

Percent taken off the subtotal, e.g. 10 or 12.5. Use this or discount_amount_off, not both. null removes it.

discount_amount_off, integer nullable

Amount taken off the subtotal, in the currency's smallest unit (cents). Use this or discount_percent_off, not both. null removes it.

discount_label, string nullable

What the discount is called on the quote, e.g. "Spring offer". Defaults to "Discount".

lines, object[]

The quote's line items. On update, the list replaces every existing line.

Response

Quote updated

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