Quotes

Cancels a draft or sent quote, so the contact can no longer accept it. Canceling a canceled quote changes nothing. An accepted, declined or expired quote answers 400 with code not_cancelable.

post/quotes/{id}/cancel

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 canceled

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