Create quote
Changed onCreates a draft quote with its line items. Nothing is sent: review it, then send it with POST /quotes/{id}/send. Give deal to tie the quote to a deal; the contact and currency then default to the deal's. A line can name a catalog price. Take a discount off the subtotal with discount_percent_off or discount_amount_off, never both (422). An unknown price, or one from another account, answers 404; a recurring, pay-what-you-want or other-currency price answers 422.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
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.
Request body
Contact ID (con_...) the quote is for. Defaults to the deal's contact.
Deal ID (deal_...) the quote belongs to. Sending the quote moves a lead or qualified deal to proposal, and acceptance marks it won.
Billing period, required when billing is recurring
Percent taken off the subtotal, e.g. 10 or 12.5. Use this or discount_amount_off, not both. null removes it.
Amount taken off the subtotal, in the currency's smallest unit (cents). Use this or discount_percent_off, not both. null removes it.
What the discount is called on the quote, e.g. "Spring offer". Defaults to "Discount".
The quote's line items. On update, the list replaces every existing line.
Response
Quote created
ID by default, full object when expanded
ID by default, full object when expanded
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_sellsto 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_sellsto 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_codeto the response with the status
2 more changes in this revision
- info