Update an invoice
Update an invoice
Headers
Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 Path Parameters
Invoice ID
Body
Due date
"2022-09-30"
Purchase order number
"PO123"
Reference
"ref"
Customer email addresses, used for sending the Invoice if provided
Customer's legal company name
"Facebook"
Customer's billing address
Customer's billing address
Invoice memo
"Thanks"
Invoice payment options
BANK_TRANSFER, LINK Billing period
Mapping of key-value pairs to attach to the Invoice. These are not interpreted by Sequence; they are present for your use alone.
Credit balances
"Verification 2 credit balance: 7/7 (expiring on 4 May 2023)"
Billing Run ID
"53ff21c8-4872-46c4-83bf-517d54876945"
Accounting date
"2022-09-30"
Attachment asset IDs
Invoice currency. Can only be updated while invoice status is DRAFT.
AED, ARS, AUD, BRL, BGN, CAD, CHF, CLP, CNY, COP, CZK, DKK, EGP, EUR, GBP, HKD, ILS, INR, ISK, JPY, KRW, MXN, NOK, NZD, PLN, SAR, SEK, SGD, THB, USD, UYU, ZAR "GBP"
Response
OK
Invoice ID
"6cedbb5e-4f77-4217-b8d4-020e7e4d33c9"
Sequence Account ID
"68233908-402a-43b4-8952-1c2ab0ef0b25"
Invoice status
IN_PROGRESS, DRAFT, FINAL, SENT, VOIDED "DRAFT"
Invoice currency
AED, ARS, AUD, BRL, BGN, CAD, CHF, CLP, CNY, COP, CZK, DKK, EGP, EUR, GBP, HKD, ILS, INR, ISK, JPY, KRW, MXN, NOK, NZD, PLN, SAR, SEK, SGD, THB, USD, UYU, ZAR "GBP"
Customer email addresses, used for sending the Invoice if provided
Customer's legal company name
"Facebook"
Customer's billing address
Customer's billing address
The ID of the Customer this invoice is linked to
"61b083e0-1faa-47ca-9aeb-6205da8f6c47"
Total tax, in decimal format of the Invoice's currency
"2.50"
Net total, in decimal format of the Invoice's currency
"51.20"
Gross total, in decimal format of the Invoice's currency
"101.23"
Mapping of key-value pairs to attach to the Invoice. These are not interpreted by Sequence; they are present for your use alone.
Invoice payment status
UNPAID, PARTIALLY_PAID, PAID, UNCOLLECTIBLE "UNPAID"
Creation time
"2022-10-30T00:00:00Z"
Updated time
"2022-10-30T00:00:00Z"
IDs of linked credit notes (if any)
External services which are linked to this invoice
Accounting date
"2022-09-30"
Settings that control how the invoice is rendered.
isCustomerArchived
false
Payment or sync status per integration service
Credit notes applied to this invoice, with per-credit-note totals and line items
Credit grants applied to this invoice, with the total credit each grant contributed
Credit grants expected to reduce this invoice when it is finalised, one row per grant. An estimate that is only locked in at finalisation, and empty once the invoice has been finalised.
What this invoice is expected to owe once projectedCreditGrants is applied to it, and grossTotal itself where nothing is projected, rounded to the currency's scale. An estimate that is only locked in at finalisation.
"71.23"
Payments allocated to this invoice, with per-payment amounts and dates
Payment terms in days. The due date is computed from these terms.
30
How the due date was determined: MANUAL when set to a fixed date, CALCULATED when computed from payment terms.
MANUAL, CALCULATED "CALCULATED"
How the due date is set: MANUAL for a date chosen by hand, PAYMENT_TERMS for a number of days after the due date anchor. Null when the invoice has neither a due date nor payment terms. Send the same value back to keep the policy, a different one to change it.
- Option 1
- Option 2
Whether the invoice has its due date yet. PENDING means it has none: an account that anchors due dates to the issue date fills the due date in when the invoice is issued.
SET, PENDING "SET"
Billing Schedule ID
"fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"
Billing Run ID
"9c5fdd27-1f7a-41e7-ab67-14f65272a853"
Invoice number
"INV00001"
Issue date
"2022-09-15"
Due date
"2022-09-30"
Purchase order number
"PO123"
Reference
"ref"
Invoice memo
"Thanks"
Invoice payment options
BANK_TRANSFER, LINK Billing period
Customer's tax ID
"TAX123"
Merchant details
Credit balances
"Verification 2 credit balance: 7/7 (expiring on 4 May 2023)"
Dunning status
SCHEDULED, OVERDUE_CHECK_SCHEDULED, COMPLETED, FAILED, NOT_REQUIRED "SCHEDULED"
Time this invoice was last calculated (applicable for invoices generated by billing engine only)
"2022-09-30T00:00:00Z"
Customer tax status
TAXED, TAX_EXEMPT, REVERSE_CHARGED "TAXED"
Assets attached to this invoice
Outstanding amount owed on this invoice
"1000.00"
Ledger version of the balance. Advances each time the balance changes; null when the invoice has no ledger balance.
0