Skip to main content
Version: v3

Update invoice

PUT 

/invoices/:invoiceId

API to update invoice by invoice id

Request

Version stringrequired

API Version

Available optionsv3
invoiceId stringrequired

Invoice Id

application/json

Bodyrequired

    altIdstringrequired

    location Id / company Id based on altType

    altTypestringrequired

    Alt Type

    Available optionslocation
    namestringrequired

    Name to be updated

    titlestring

    Title for the invoice

    currencystringrequired

    Currency

    descriptionstring

    Description

    businessDetailsobject

    Business details which need to be updated

    invoiceNumberstring

    Invoice Number

    contactIdstring

    Id of the contact which you need to send the invoice

    contactDetailsobject
    termsNotesstring

    Terms notes, Also supports HTML markups

    discountobject
    invoiceItemsobject[]required
    automaticTaxesEnabledboolean

    Automatic taxes enabled for the Invoice

    liveModeboolean

    Payment mode

    issueDatestringrequired

    Issue date in YYYY-MM-DD format

    dueDatestringrequired

    Due date in YYYY-MM-DD format

    paymentScheduleobject

    split invoice into payment schedule summing up to full invoice amount

    tipsConfigurationobject

    tips configuration for the invoice

    xeroDetailsobject
    invoiceNumberPrefixstring

    prefix for invoice number

    paymentMethodsobject

    Payment Methods for Invoices

    attachmentsobject[]

    attachments for the invoice

    miscellaneousChargesobject

    miscellaneous charges for the invoice

application/json

Successful response

Schema
    _idstringrequired

    Invoice Id

    statusstringrequired

    Invoice Status

    Available optionsdraftsentpayment_processingpaidvoidpartially_paid
    liveModebooleanrequired

    Live Mode

    amountPaidnumberrequired

    Amount Paid

    altIdstringrequired

    Location Id or Agency Id

    altTypestringrequired
    Available optionslocation
    namestringrequired

    Name of the invoice

    businessDetailsobjectrequired

    Business Details

    invoiceNumbernumberrequired

    Invoice Number

    currencystringrequired

    Currency

    contactDetailsobjectrequired

    Contact Details

    issueDatestringrequired

    Issue date in YYYY-MM-DD format

    dueDatestringrequired

    Due date in YYYY-MM-DD format

    discountobject

    Discount

    invoiceItemsstring[]required

    Invoice Items

    totalnumberrequired

    Total Amount

    titlestringrequired

    Title

    amountDuenumberrequired

    Total Amount Due

    createdAtstringrequired

    created at

    updatedAtstringrequired

    updated at

    automaticTaxesEnabledboolean

    Automatic taxes enabled for the Invoice

    automaticTaxesCalculatedboolean

    Is Automatic taxes calculated for the Invoice items

    paymentScheduleobject

    split invoice into payment schedule summing up to full invoice amount