POST
/
invoices
/
{id}
/
finalize

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Path Parameters

id
string
required

Invoice Id

Response

200 - application/json
id
string
required

Invoice ID

sequenceAccountId
string
required

Sequence Account ID

billingScheduleId
string

Billing Schedule ID

status
enum<string>
required

Invoice status

Available options:
IN_PROGRESS,
DRAFT,
FINAL,
SENT,
VOIDED
currency
enum<string>
required

Invoice currency

Available options:
ARS,
AUD,
BRL,
CAD,
CHF,
CNY,
COP,
CZK,
DKK,
EUR,
GBP,
HKD,
ILS,
JPY,
KRW,
MXN,
NOK,
NZD,
PLN,
SEK,
SGD,
THB,
USD,
UYU,
ZAR
invoiceNumber
string

Invoice number

issueDate
string

Issue date

dueDate
string

Due date

purchaseOrderNumber
string

Purchase order number

reference
string

Reference

customerEmails
string[]
required

Customer email addresses, used for sending the Invoice if provided

customerLegalCompanyName
string
required

Customer's legal company name

customerBillingAddress
object
required

Customer's billing address

customerShippingAddress
object
required

Customer's billing address

memo
string

Invoice memo

paymentOptions
enum<string>[]

Invoice payment options

Available options:
BANK_TRANSFER,
LINK
billingPeriod
object

Billing period

customerId
string
required

The ID of the Customer this invoice is linked to

totalTax
string
required

Total tax, in decimal format of the Invoice's currency

netTotal
string
required

Net total, in decimal format of the Invoice's currency

grossTotal
string
required

Gross total, in decimal format of the Invoice's currency

metadata
object[]
required

Mapping of key-value pairs to attach to the Invoice. These are not interpreted by Sequence; they are present for your use alone.

customerTaxId
string

Customer's tax ID

paymentStatus
enum<string>
required

Invoice payment status

Available options:
UNPAID,
PARTIALLY_PAID,
PAID,
UNCOLLECTIBLE
createdAt
string
required

Creation time

creditNoteIds
string[]
required

IDs of linked credit notes (if any)

linkedServices
object[]
required

External services which are linked to this invoice

merchantDetails
object

Merchant details

creditBalances
string

Credit balances

dunningStatus
enum<string>

Dunning status

Available options:
SCHEDULED,
OVERDUE_CHECK_SCHEDULED,
COMPLETED,
FAILED,
NOT_REQUIRED
accountingDate
string
required

Accounting date

calculatedAt
string

Time this invoice was last calculated (applicable for invoices generated by billing engine only)

customerTaxStatus
enum<string>

Customer tax status

Available options:
TAXED,
TAX_EXEMPT,
REVERSE_CHARGED
renderSettings
object
required

Settings that control how the invoice is rendered.

isCustomerArchived
boolean
required