Invoices

Mark invoice paid

Changed on

Records that an open or past-due invoice was paid outside Crevio, such as by bank transfer or cash. No card is charged. The invoice becomes paid with paid_out_of_band true, its payment link stops working, and invoice.paid is sent. Refuses a paid or void invoice with code invoice_not_payable.

post/invoices/{id}/mark_paid

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

Invoice marked paid

Invoice required
id, string required
object, string required
status, 'open' | 'paid' | 'past_due' | 'void' required
number, string required
description, string nullable required
customer_name, string nullable required
email_address, string nullable required
collection_method, 'send_invoice' | 'charge_automatically' required
due_at, string date-time required
created_at, string date-time required
updated_at, string date-time required
checkout_url, string nullable required
pdf_url, string required

The invoice as a PDF. Anyone with the link can open it, so share it only with the contact.

amount, number nullable required
currency, string nullable required
paid_at, string nullable required
paid_out_of_band, boolean required

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.

contact, union

ID by default, full object when expanded

price_variant, union required

ID by default, full object when expanded

order, union

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_sells to 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_sells to the response with the status

    • info

      added the required property 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