Skip to main content
PUT
Update invoice

Headers

Version
enum<string>
required

API Version

Available options:
2021-07-28

Path Parameters

invoiceId
string
required

Invoice Id

Example:

"6578278e879ad2646715ba9c"

Body

application/json
altId
string
required

location Id / company Id based on altType

Example:

"6578278e879ad2646715ba9c"

altType
enum<string>
required

Alt Type

Available options:
location
Example:

"location"

name
string
required

Name to be updated

Example:

"New Invoice"

currency
string
required

Currency

Example:

"USD"

invoiceItems
object[]
required
issueDate
string
required

Issue date in YYYY-MM-DD format

Example:

"2023-01-01"

dueDate
string
required

Due date in YYYY-MM-DD format

Example:

"2023-01-14"

title
string

Title for the invoice

Example:

"INVOICE"

description
string

Description

Example:

"ABC Corp payments"

businessDetails
object
Example:
invoiceNumber
string

Invoice Number

Example:

"1001"

contactId
string

Id of the contact which you need to send the invoice

Example:

"6578278e879ad2646715ba9c"

contactDetails
object
termsNotes
string

Terms notes, Also supports HTML markups

Example:

"<p>This is a default terms.</p>"

discount
object
automaticTaxesEnabled
boolean

Automatic taxes enabled for the Invoice

Example:

true

liveMode
boolean

Payment mode

paymentSchedule
object
tipsConfiguration
object
xeroDetails
object
invoiceNumberPrefix
string

prefix for invoice number

Example:

"INV-"

paymentMethods
object
attachments
object[]

attachments for the invoice

miscellaneousCharges
object

Response

Successful response

_id
string
required

Invoice Id

Example:

"6578278e879ad2646715ba9c"

status
enum<string>
required

Invoice Status

Available options:
draft,
sent,
payment_processing,
paid,
void,
partially_paid
Example:

"draft"

liveMode
boolean
required

Live Mode

Example:

false

amountPaid
number
required

Amount Paid

Example:

0

altId
string
required

Location Id or Agency Id

Example:

"6578278e879ad2646715ba9c"

altType
enum<string>
required
Available options:
location
name
string
required

Name of the invoice

Example:

"New Invoice"

businessDetails
object
required

Business Details

Example:
invoiceNumber
number
required

Invoice Number

Example:

"19"

currency
string
required

Currency

Example:

"USD"

contactDetails
object
required

Contact Details

Example:
issueDate
string
required

Issue date in YYYY-MM-DD format

Example:

"2023-01-01"

dueDate
string
required

Due date in YYYY-MM-DD format

Example:

"2023-01-01"

invoiceItems
string[]
required

Invoice Items

Example:
total
number
required

Total Amount

Example:

999

title
string
required

Title

Example:

"INVOICE"

amountDue
number
required

Total Amount Due

Example:

999

createdAt
string
required

created at

Example:

"2023-12-12T09:27:42.355Z"

updatedAt
string
required

updated at

Example:

"2023-12-12T09:27:42.355Z"

discount
object

Discount

Example:
automaticTaxesEnabled
boolean

Automatic taxes enabled for the Invoice

Example:

true

automaticTaxesCalculated
boolean

Is Automatic taxes calculated for the Invoice items

Example:

true

paymentSchedule
object

split invoice into payment schedule summing up to full invoice amount

Last modified on March 8, 2026