Create invoice
Changed onCreates a new invoice and sends it to the contact via email
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
Who the invoice is addressed to. Required without contact; with one, the contact's name is used when it has one.
Where the invoice is sent. Required without contact; with one, the contact's email is used. An address that belongs to an existing contact is refused: pass that contact instead.
Contact ID
Price variant ID (price_...) the invoice bills for
When payment is due. Must be in the future.
Response
Invoice created
The invoice as a PDF. Anyone with the link can open it, so share it only with the contact.
True when the invoice was marked paid for a payment made outside Crevio, such as cash or a bank transfer. No order exists for it.
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
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
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
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