Update invoice
This endpoint allows you to update the metadata, net_terms, due_date, invoice_date, and auto_collection
properties on an invoice. If you pass null for the metadata value, it will clear any existing metadata for that invoice.
metadata can be modified regardless of invoice state.
net_terms, due_date, invoice_date, and auto_collection can only be modified if the invoice is in a draft state.
invoice_date can only be modified for non-subscription invoices.
Body
The number of days until the invoice is due, counting the start date as day 1, so net 30 from October 1 is due October 30. The account's due date calculation method sets whether the start date is the invoice date or the issuance date. A value of '0' here represents that the invoice is due on issue. Do not set this field if you want to set a custom due date.
x >= 00
Response
OK
An Invoice is a fundamental billing entity, representing the request for payment for
a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
the result of an action, such as a cancellation.
When payment for this invoice was received. For an invoice manually marked as paid, this is the payment_received_date that was supplied. For an invoice paid through a payment provider, this is the settlement time reported by that provider. It is null for an invoice that became paid without a payment, such as a $0 invoice or one fully covered by credit notes. By contrast, paid_at is when the invoice reached the paid status in Orb.
The number of line items omitted from line_items because they have zero quantity. Amounts such as subtotal and total are computed over every line item on the invoice, including the omitted ones. In rare circumstances, hidden line items may still contribute to these amounts.
0