Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.6.0
required

Body

application/json
invoice_id
string
required

The Autumn invoice ID to finalize.

issue_method
enum<string>

finalize opens the invoice without Stripe emailing, reminding or charging. send opens it and Stripe emails it for the customer to pay (send_invoice). charge_automatically charges the customer's payment method on file right away, and is refused when there is none. Omitted, the draft is issued the way it is set up: emailed if it is send_invoice, charged if it is charge_automatically.

Available options:
finalize,
send,
charge_automatically
net_terms_days
integer

Days the customer has to pay an emailed invoice. Omitted, the draft keeps its due date, falling back to the org default. Only valid with issue_method send.

Required range: -9007199254740991 < x <= 9007199254740991
preview
boolean

If true, returns exactly what finalizing would issue (lines, discounts, tax, credits, amount due) and how it is issued, without changing anything.

Response

200 - application/json

OK

invoice
object
required

The invoice. Unchanged when preview is true.

preview
object

What finalizing issues. Returned when preview is true.

required_action
object

Set when issue_method charge_automatically finalized the invoice but the charge failed (payment_failed). The invoice stays open and unpaid, and Stripe retries it.