Finalize Invoice

View as MarkdownOpen in Claude
Finalize an invoice (transition from DRAFT to OPEN). Triggers PDF generation after finalization. Requirements: - Invoice must be in DRAFT state Returns: - The finalized invoice with OPEN status

Authentication

AuthorizationBearer

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

Path parameters

external_idstringRequired
account_idstringRequired

Response

Successful Response
idstring
customer_idstring
statusenum
currencyenum
ISO 4217 currency codes.
subtotal_amount_atominteger or null
tax_amount_atominteger or null
total_amount_atominteger or null
due_amount_atominteger or null
paid_amount_atominteger or null
remaining_amount_atominteger or null
issued_atdatetime
due_datedatetime or null
descriptionstring or null
metadatamap from strings to any or null
created_atdatetime
updated_atdatetime
applied_balance_amount_atominteger or null
total_discount_amount_atominteger or null
period_startdatetime or null
period_enddatetime or null
collection_methodenum or null
Allowed values:
custom_fieldsmap from strings to any or null

Custom field values. Only included when expand=custom_fields is specified.

itemslist of objects or null
invoice_numberinteger or null
billing_reasonenum or null
subscription_idstring or null
invoice_pdf_urlstring or null
receipt_pdf_urlstring or null

Errors