POST /Invoices

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

xero-tenant-id String Yes

Xero identifier for Tenant

Idempotency-Key String No

This allows you to safely retry requests without the risk of duplicate processing. 128 character max.

Query parameters

Name Type Required Description
unitdp Integer No

e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

summarizeErrors Boolean No

If false return 200 OK and mix of successfully created objects and any with validation errors

Default value: false

Request body fields

Name Type Required Description
pagination Object No
pagination.page Integer No
pagination.itemCount Integer No
pagination.pageCount Integer No
pagination.pageSize Integer No
Warnings[] Array No

Displays array of warning messages from the API

Warnings[].Message String No

Validation error message

Invoices[] Array No
Invoices[].TotalDiscount Number No

Total of discounts applied on the invoice line items

Invoices[].HasErrors Boolean No

A boolean to indicate if a invoice has an validation errors

Default value: false

Invoices[].PlannedPaymentDate String No

Shown on bills (Accounts Payable) when this has been set

Invoices[].Url String No

URL link to a source document – shown as “Go to [appName]” in the Xero app

Invoices[].InvoiceNumber String No

ACCREC – Unique alpha numeric code identifying invoice (when missing will auto-generate from your Organisation Invoice Settings) (max length = 255)

Invoices[].Payments[] Array No

See Payments

Invoices[].IsDiscounted Boolean No

boolean to indicate if an invoice has a discount

Invoices[].Total Number No

Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts

Invoices[].RepeatingInvoiceID String No

Xero generated unique identifier for repeating invoices

Invoices[].FullyPaidOnDate String No

The date the invoice was fully paid. Only returned on fully paid invoices

Invoices[].InvoiceAddresses[] Array No

An array of addresses used to auto calculate sales tax

Invoices[].InvoiceAddresses[].City String No

City of a physical address

Invoices[].InvoiceAddresses[].AddressLine2 String No

Second line of a physical address

Invoices[].InvoiceAddresses[].Region String No

Region or state of a physical address

Invoices[].InvoiceAddresses[].Country String No

Country of a physical address

Invoices[].InvoiceAddresses[].AddressLine1 String No

First line of a physical address

Invoices[].InvoiceAddresses[].InvoiceAddressType String No

Indicates whether the address is defined as origin (FROM) or destination (TO)

Possible values:

  • "FROM"
  • "TO"
Invoices[].InvoiceAddresses[].AddressLine4 String No

Fourth line of a physical address

Invoices[].InvoiceAddresses[].AddressLine3 String No

Third line of a physical address

Invoices[].InvoiceAddresses[].PostalCode String No

Postal code of a physical address

Invoices[].Overpayments[] Array No

See Overpayments

Invoices[].Overpayments[].LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].Overpayments[].Date String No

The date the overpayment is created YYYY-MM-DD

Invoices[].Overpayments[].Payments[] Array No

See Payments

Invoices[].Overpayments[].Type String No

See Overpayment Types

Possible values:

  • "RECEIVE-OVERPAYMENT"
  • "AROVERPAYMENT"
  • "SPEND-OVERPAYMENT"
Invoices[].Overpayments[].Total Number No

The total of the overpayment (subtotal + total tax)

Invoices[].Overpayments[].TotalTax Number No

The total tax on the overpayment

Invoices[].Overpayments[].LineItems[] Array No

See Overpayment Line Items

Invoices[].Overpayments[].LineItems[].Quantity Number No

LineItem Quantity

Invoices[].Overpayments[].LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].Overpayments[].LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].Overpayments[].LineItems[].Item No
Invoices[].Overpayments[].LineItems[].AccountCode String No

See Accounts

Invoices[].Overpayments[].LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].Overpayments[].LineItems[].LineItemID String No

LineItem unique ID

Invoices[].Overpayments[].LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].Overpayments[].LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].Overpayments[].LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].Overpayments[].LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].Overpayments[].LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].Overpayments[].LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].Overpayments[].LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].Overpayments[].LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].Overpayments[].LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].Overpayments[].LineItems[].ItemCode String No

See Items

Invoices[].Overpayments[].LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].Overpayments[].LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].Overpayments[].LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].Overpayments[].LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].Overpayments[].LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].Overpayments[].LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].Overpayments[].LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].Overpayments[].UpdatedDateUTC String No

UTC timestamp of last update to the overpayment

Invoices[].Overpayments[].SubTotal Number No

The subtotal of the overpayment excluding taxes

Invoices[].Overpayments[].CurrencyRate Number No

The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used

Invoices[].Overpayments[].Status String No

See Overpayment Status Codes

Possible values:

  • "AUTHORISED"
  • "PAID"
  • "VOIDED"
Invoices[].Overpayments[].OverpaymentID String No

Xero generated unique identifier

Invoices[].Overpayments[].AppliedAmount Number No

The amount of applied to an invoice

Invoices[].Overpayments[].Attachments[] Array No

See Attachments

Invoices[].Overpayments[].Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Overpayments[].Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Overpayments[].Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Overpayments[].Attachments[].MimeType String No

Type of file

Invoices[].Overpayments[].Attachments[].Url String No

URL to the file on xero.com

Invoices[].Overpayments[].Attachments[].FileName String No

Name of the file

Invoices[].Overpayments[].RemainingCredit Number No

The remaining credit balance on the overpayment

Invoices[].Overpayments[].Allocations[] Array No

See Allocations

Invoices[].Overpayments[].Contact Object No
Invoices[].Overpayments[].Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].Overpayments[].Contact.Website String No

Website address for contact (read only)

Invoices[].Overpayments[].Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].Overpayments[].Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].Overpayments[].Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Overpayments[].Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Overpayments[].Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Overpayments[].Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Overpayments[].Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].Overpayments[].Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Overpayments[].Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].Overpayments[].Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].Overpayments[].Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].Overpayments[].Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Overpayments[].Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Overpayments[].Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].Overpayments[].Contact.BrandingTheme Object No
Invoices[].Overpayments[].Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].Overpayments[].Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].Overpayments[].Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].Overpayments[].Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].Overpayments[].Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].Overpayments[].Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].Overpayments[].Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].Overpayments[].Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Overpayments[].Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].Overpayments[].Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Overpayments[].Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Overpayments[].Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Overpayments[].Contact.Attachments[].MimeType String No

Type of file

Invoices[].Overpayments[].Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Overpayments[].Contact.Attachments[].FileName String No

Name of the file

Invoices[].Overpayments[].Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].Overpayments[].Contact.ContactID String No

Xero identifier

Invoices[].Overpayments[].Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].Overpayments[].Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].Overpayments[].Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].Overpayments[].Contact.Addresses[].City String No

max length = 255

Invoices[].Overpayments[].Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].Overpayments[].Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].Overpayments[].Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].Overpayments[].Contact.Addresses[].Region String No

max length = 255

Invoices[].Overpayments[].Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].Overpayments[].Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].Overpayments[].Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].Overpayments[].Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].Overpayments[].Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].Overpayments[].Contact.StatusAttributeString String No

Status of object

Invoices[].Overpayments[].Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].Overpayments[].Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].Overpayments[].Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].Overpayments[].Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].Overpayments[].Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].Overpayments[].Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].Overpayments[].Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].Overpayments[].Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].Overpayments[].Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].Overpayments[].Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].Overpayments[].Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].Overpayments[].Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Overpayments[].Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].Overpayments[].Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].Overpayments[].Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].Overpayments[].Contact.Balances.AccountsReceivable Object No
Invoices[].Overpayments[].Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].Overpayments[].Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].Overpayments[].Contact.Balances.AccountsPayable Object No
Invoices[].Overpayments[].Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].Overpayments[].Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].Overpayments[].Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].Overpayments[].Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].Overpayments[].Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].Overpayments[].Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].Overpayments[].Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].Overpayments[].Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].Overpayments[].Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].Overpayments[].Contact.PaymentTerms Object No
Invoices[].Overpayments[].Contact.PaymentTerms.Bills Object No
Invoices[].Overpayments[].Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].Overpayments[].Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Overpayments[].Contact.PaymentTerms.Sales Object No
Invoices[].Overpayments[].Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].Overpayments[].Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Overpayments[].Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].Overpayments[].Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].Overpayments[].Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].Overpayments[].Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].Overpayments[].Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].Overpayments[].Contact.ContactPersons[] Array No

See contact persons

Invoices[].Overpayments[].Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].Overpayments[].Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].Overpayments[].Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].Overpayments[].Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].Overpayments[].HasAttachments Boolean No

boolean to indicate if a overpayment has an attachment

Default value: false

Invoices[].Overpayments[].CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].UpdatedDateUTC String No

Last modified date UTC format

Invoices[].CurrencyRate Number No

The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length = [18].[6])

Invoices[].Attachments[] Array No

Displays array of attachments from the API

Invoices[].Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Attachments[].MimeType String No

Type of file

Invoices[].Attachments[].Url String No

URL to the file on xero.com

Invoices[].Attachments[].FileName String No

Name of the file

Invoices[].InvoiceID String No

Xero generated unique identifier for invoice

Invoices[].Contact Object No
Invoices[].Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].Contact.Website String No

Website address for contact (read only)

Invoices[].Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].Contact.BrandingTheme Object No
Invoices[].Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Contact.Attachments[].MimeType String No

Type of file

Invoices[].Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Contact.Attachments[].FileName String No

Name of the file

Invoices[].Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].Contact.ContactID String No

Xero identifier

Invoices[].Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].Contact.Addresses[].City String No

max length = 255

Invoices[].Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].Contact.Addresses[].Region String No

max length = 255

Invoices[].Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].Contact.StatusAttributeString String No

Status of object

Invoices[].Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].Contact.Balances.AccountsReceivable Object No
Invoices[].Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].Contact.Balances.AccountsPayable Object No
Invoices[].Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].Contact.PaymentTerms Object No
Invoices[].Contact.PaymentTerms.Bills Object No
Invoices[].Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Contact.PaymentTerms.Sales Object No
Invoices[].Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].Contact.ContactPersons[] Array No

See contact persons

Invoices[].Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].AmountCredited Number No

Sum of all credit notes, over-payments and pre-payments applied to invoice

Invoices[].LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].Date String No

Date invoice was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation

Invoices[].CISDeduction Number No

CIS deduction for UK contractors

Invoices[].SentToContact Boolean No

Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved

Invoices[].Warnings[] Array No

Displays array of warning messages from the API

Invoices[].Warnings[].Message String No

Validation error message

Invoices[].Type String No

See Invoice Types

Possible values:

  • "APOVERPAYMENT"
  • "APPREPAYMENT"
  • "ACCPAYCREDIT"
  • "ACCREC"
  • "AROVERPAYMENT"
  • "ACCRECCREDIT"
  • "ARPREPAYMENT"
  • "ACCPAY"
Invoices[].StatusAttributeString String No

A string to indicate if a invoice status

Invoices[].DueDate String No

Date invoice is due – YYYY-MM-DD

Invoices[].CISRate Number No

CIS Deduction rate for the organisation

Invoices[].Reference String No

ACCREC only – additional reference number

Invoices[].TotalTax Number No

Total tax on invoice

Invoices[].LineItems[] Array No

See LineItems

Invoices[].LineItems[].Quantity Number No

LineItem Quantity

Invoices[].LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].LineItems[].Item No
Invoices[].LineItems[].AccountCode String No

See Accounts

Invoices[].LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].LineItems[].LineItemID String No

LineItem unique ID

Invoices[].LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].LineItems[].ItemCode String No

See Items

Invoices[].LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].AmountDue Number No

Amount remaining to be paid on invoice

Invoices[].SubTotal Number No

Total of invoice excluding taxes

Invoices[].Prepayments[] Array No

See Prepayments

Invoices[].Prepayments[].LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].Prepayments[].Date String No

The date the prepayment is created YYYY-MM-DD

Invoices[].Prepayments[].Payments[] Array No

See Payments

Invoices[].Prepayments[].Type String No

See Prepayment Types

Possible values:

  • "APPREPAYMENT"
  • "RECEIVE-PREPAYMENT"
  • "SPEND-PREPAYMENT"
  • "ARPREPAYMENT"
Invoices[].Prepayments[].Total Number No

The total of the prepayment(subtotal + total tax)

Invoices[].Prepayments[].TotalTax Number No

The total tax on the prepayment

Invoices[].Prepayments[].Reference String No

Returns Invoice number field. Reference field isn't available.

Invoices[].Prepayments[].LineItems[] Array No

See Prepayment Line Items

Invoices[].Prepayments[].LineItems[].Quantity Number No

LineItem Quantity

Invoices[].Prepayments[].LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].Prepayments[].LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].Prepayments[].LineItems[].Item No
Invoices[].Prepayments[].LineItems[].AccountCode String No

See Accounts

Invoices[].Prepayments[].LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].Prepayments[].LineItems[].LineItemID String No

LineItem unique ID

Invoices[].Prepayments[].LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].Prepayments[].LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].Prepayments[].LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].Prepayments[].LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].Prepayments[].LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].Prepayments[].LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].Prepayments[].LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].Prepayments[].LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].Prepayments[].LineItems[].ItemCode String No

See Items

Invoices[].Prepayments[].LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].Prepayments[].LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].Prepayments[].LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].Prepayments[].LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].Prepayments[].LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].Prepayments[].LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].Prepayments[].LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].Prepayments[].UpdatedDateUTC String No

UTC timestamp of last update to the prepayment

Invoices[].Prepayments[].SubTotal Number No

The subtotal of the prepayment excluding taxes

Invoices[].Prepayments[].CurrencyRate Number No

The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used

Invoices[].Prepayments[].Status String No

See Prepayment Status Codes

Possible values:

  • "AUTHORISED"
  • "PAID"
  • "VOIDED"
Invoices[].Prepayments[].AppliedAmount Number No

The amount of applied to an invoice

Invoices[].Prepayments[].Attachments[] Array No

See Attachments

Invoices[].Prepayments[].Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Prepayments[].Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Prepayments[].Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Prepayments[].Attachments[].MimeType String No

Type of file

Invoices[].Prepayments[].Attachments[].Url String No

URL to the file on xero.com

Invoices[].Prepayments[].Attachments[].FileName String No

Name of the file

Invoices[].Prepayments[].RemainingCredit Number No

The remaining credit balance on the prepayment

Invoices[].Prepayments[].Allocations[] Array No

See Allocations

Invoices[].Prepayments[].Allocations[].Amount Number Yes

the amount being applied to the invoice

Invoices[].Prepayments[].Allocations[].Date String Yes

the date the allocation is applied YYYY-MM-DD.

Invoices[].Prepayments[].Allocations[].Prepayment No
Invoices[].Prepayments[].Allocations[].Overpayment Object No
Invoices[].Prepayments[].Allocations[].Overpayment.LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].Prepayments[].Allocations[].Overpayment.Date String No

The date the overpayment is created YYYY-MM-DD

Invoices[].Prepayments[].Allocations[].Overpayment.Payments[] Array No

See Payments

Invoices[].Prepayments[].Allocations[].Overpayment.Type String No

See Overpayment Types

Possible values:

  • "RECEIVE-OVERPAYMENT"
  • "AROVERPAYMENT"
  • "SPEND-OVERPAYMENT"
Invoices[].Prepayments[].Allocations[].Overpayment.Total Number No

The total of the overpayment (subtotal + total tax)

Invoices[].Prepayments[].Allocations[].Overpayment.TotalTax Number No

The total tax on the overpayment

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[] Array No

See Overpayment Line Items

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Quantity Number No

LineItem Quantity

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Item No
Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].AccountCode String No

See Accounts

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].LineItemID String No

LineItem unique ID

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].ItemCode String No

See Items

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].Prepayments[].Allocations[].Overpayment.LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].Prepayments[].Allocations[].Overpayment.UpdatedDateUTC String No

UTC timestamp of last update to the overpayment

Invoices[].Prepayments[].Allocations[].Overpayment.SubTotal Number No

The subtotal of the overpayment excluding taxes

Invoices[].Prepayments[].Allocations[].Overpayment.CurrencyRate Number No

The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used

Invoices[].Prepayments[].Allocations[].Overpayment.Status String No

See Overpayment Status Codes

Possible values:

  • "AUTHORISED"
  • "PAID"
  • "VOIDED"
Invoices[].Prepayments[].Allocations[].Overpayment.OverpaymentID String No

Xero generated unique identifier

Invoices[].Prepayments[].Allocations[].Overpayment.AppliedAmount Number No

The amount of applied to an invoice

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[] Array No

See Attachments

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].MimeType String No

Type of file

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Prepayments[].Allocations[].Overpayment.Attachments[].FileName String No

Name of the file

Invoices[].Prepayments[].Allocations[].Overpayment.RemainingCredit Number No

The remaining credit balance on the overpayment

Invoices[].Prepayments[].Allocations[].Overpayment.Allocations[] Array No

See Allocations

Invoices[].Prepayments[].Allocations[].Overpayment.Contact Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Website String No

Website address for contact (read only)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].MimeType String No

Type of file

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Attachments[].FileName String No

Name of the file

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactID String No

Xero identifier

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].City String No

max length = 255

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].Region String No

max length = 255

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.StatusAttributeString String No

Status of object

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsReceivable Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsPayable Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Bills Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Sales Object No
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactPersons[] Array No

See contact persons

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].Prepayments[].Allocations[].Overpayment.Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].Prepayments[].Allocations[].Overpayment.HasAttachments Boolean No

boolean to indicate if a overpayment has an attachment

Default value: false

Invoices[].Prepayments[].Allocations[].Overpayment.CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].Allocations[].StatusAttributeString String No

A string to indicate if a invoice status

Invoices[].Prepayments[].Allocations[].ValidationErrors[] Array No

Displays array of validation error messages from the API

Invoices[].Prepayments[].Allocations[].ValidationErrors[].Message String No

Validation error message

Invoices[].Prepayments[].Allocations[].IsDeleted Boolean No

A flag that returns true when the allocation is succesfully deleted

Invoices[].Prepayments[].Allocations[].AllocationID String No

Xero generated unique identifier

Invoices[].Prepayments[].Allocations[].Invoice Yes
Invoices[].Prepayments[].Allocations[].CreditNote Object No
Invoices[].Prepayments[].Allocations[].CreditNote.HasErrors Boolean No

A boolean to indicate if a credit note has an validation errors

Default value: false

Invoices[].Prepayments[].Allocations[].CreditNote.Payments[] Array No

See Payments

Invoices[].Prepayments[].Allocations[].CreditNote.Total Number No

The total of the Credit Note(subtotal + total tax)

Invoices[].Prepayments[].Allocations[].CreditNote.FullyPaidOnDate String No

Date when credit note was fully paid(UTC format)

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[] Array No

An array of addresses used to auto calculate sales tax

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].City String No

City of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].AddressLine2 String No

Second line of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].Region String No

Region or state of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].Country String No

Country of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].AddressLine1 String No

First line of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].InvoiceAddressType String No

Indicates whether the address is defined as origin (FROM) or destination (TO)

Possible values:

  • "FROM"
  • "TO"
Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].AddressLine4 String No

Fourth line of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].AddressLine3 String No

Third line of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.InvoiceAddresses[].PostalCode String No

Postal code of a physical address

Invoices[].Prepayments[].Allocations[].CreditNote.UpdatedDateUTC String No

UTC timestamp of last update to the credit note

Invoices[].Prepayments[].Allocations[].CreditNote.CurrencyRate Number No

The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used

Invoices[].Prepayments[].Allocations[].CreditNote.RemainingCredit Number No

The remaining credit balance on the Credit Note

Invoices[].Prepayments[].Allocations[].CreditNote.Allocations[] Array No

See Allocations

Invoices[].Prepayments[].Allocations[].CreditNote.Contact Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Website String No

Website address for contact (read only)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].MimeType String No

Type of file

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Attachments[].FileName String No

Name of the file

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactID String No

Xero identifier

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].City String No

max length = 255

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].Region String No

max length = 255

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.StatusAttributeString String No

Status of object

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsReceivable Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsPayable Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Bills Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Sales Object No
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactPersons[] Array No

See contact persons

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].Prepayments[].Allocations[].CreditNote.Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].Prepayments[].Allocations[].CreditNote.CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].Allocations[].CreditNote.CreditNoteID String No

Xero generated unique identifier

Invoices[].Prepayments[].Allocations[].CreditNote.LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].Prepayments[].Allocations[].CreditNote.Date String No

The date the credit note is issued YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation

Invoices[].Prepayments[].Allocations[].CreditNote.CISDeduction Number No

CIS deduction for UK contractors

Invoices[].Prepayments[].Allocations[].CreditNote.SentToContact Boolean No

Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved

Invoices[].Prepayments[].Allocations[].CreditNote.Warnings[] Array No

Displays array of warning messages from the API

Invoices[].Prepayments[].Allocations[].CreditNote.Warnings[].Message String No

Validation error message

Invoices[].Prepayments[].Allocations[].CreditNote.Type String No

See Credit Note Types

Possible values:

  • "ACCPAYCREDIT"
  • "ACCRECCREDIT"
Invoices[].Prepayments[].Allocations[].CreditNote.StatusAttributeString String No

A string to indicate if a invoice status

Invoices[].Prepayments[].Allocations[].CreditNote.DueDate String No

Date invoice is due – YYYY-MM-DD

Invoices[].Prepayments[].Allocations[].CreditNote.CISRate Number No

CIS Deduction rate for the organisation

Invoices[].Prepayments[].Allocations[].CreditNote.TotalTax Number No

The total tax on the credit note

Invoices[].Prepayments[].Allocations[].CreditNote.Reference String No

ACCRECCREDIT only – additional reference number

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[] Array No

See Invoice Line Items

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Quantity Number No

LineItem Quantity

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Item No
Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].AccountCode String No

See Accounts

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].LineItemID String No

LineItem unique ID

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].ItemCode String No

See Items

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].Prepayments[].Allocations[].CreditNote.LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].Prepayments[].Allocations[].CreditNote.SubTotal Number No

The subtotal of the credit note excluding taxes

Invoices[].Prepayments[].Allocations[].CreditNote.Status String No

See Credit Note Status Codes

Possible values:

  • "DELETED"
  • "AUTHORISED"
  • "SUBMITTED"
  • "DRAFT"
  • "PAID"
  • "VOIDED"
Invoices[].Prepayments[].Allocations[].CreditNote.BrandingThemeID String No

See BrandingThemes

Invoices[].Prepayments[].Allocations[].CreditNote.AppliedAmount Number No

The amount of applied to an invoice

Invoices[].Prepayments[].Allocations[].CreditNote.ValidationErrors[] Array No

Displays array of validation error messages from the API

Invoices[].Prepayments[].Allocations[].CreditNote.ValidationErrors[].Message String No

Validation error message

Invoices[].Prepayments[].Allocations[].CreditNote.HasAttachments Boolean No

boolean to indicate if a credit note has an attachment

Default value: false

Invoices[].Prepayments[].Allocations[].CreditNote.CreditNoteNumber String No

ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings)

Invoices[].Prepayments[].Contact Object No
Invoices[].Prepayments[].Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].Prepayments[].Contact.Website String No

Website address for contact (read only)

Invoices[].Prepayments[].Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].Prepayments[].Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].Prepayments[].Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].Prepayments[].Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].Prepayments[].Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].Prepayments[].Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].Prepayments[].Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].Prepayments[].Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].Prepayments[].Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].Prepayments[].Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].Prepayments[].Contact.BrandingTheme Object No
Invoices[].Prepayments[].Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].Prepayments[].Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].Prepayments[].Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].Prepayments[].Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].Prepayments[].Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].Prepayments[].Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].Prepayments[].Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].Prepayments[].Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].Prepayments[].Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].Prepayments[].Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].Prepayments[].Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].Prepayments[].Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].Prepayments[].Contact.Attachments[].MimeType String No

Type of file

Invoices[].Prepayments[].Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].Prepayments[].Contact.Attachments[].FileName String No

Name of the file

Invoices[].Prepayments[].Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].Prepayments[].Contact.ContactID String No

Xero identifier

Invoices[].Prepayments[].Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].Prepayments[].Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].Prepayments[].Contact.Addresses[].City String No

max length = 255

Invoices[].Prepayments[].Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].Prepayments[].Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].Prepayments[].Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].Prepayments[].Contact.Addresses[].Region String No

max length = 255

Invoices[].Prepayments[].Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].Prepayments[].Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].Prepayments[].Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].Prepayments[].Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].Prepayments[].Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].Prepayments[].Contact.StatusAttributeString String No

Status of object

Invoices[].Prepayments[].Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].Prepayments[].Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].Prepayments[].Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].Prepayments[].Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].Prepayments[].Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].Prepayments[].Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].Prepayments[].Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].Prepayments[].Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].Prepayments[].Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].Prepayments[].Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].Prepayments[].Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].Prepayments[].Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].Prepayments[].Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].Prepayments[].Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].Prepayments[].Contact.Balances.AccountsReceivable Object No
Invoices[].Prepayments[].Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].Prepayments[].Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].Prepayments[].Contact.Balances.AccountsPayable Object No
Invoices[].Prepayments[].Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].Prepayments[].Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].Prepayments[].Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].Prepayments[].Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].Prepayments[].Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].Prepayments[].Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].Prepayments[].Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].Prepayments[].Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].Prepayments[].Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].Prepayments[].Contact.PaymentTerms Object No
Invoices[].Prepayments[].Contact.PaymentTerms.Bills Object No
Invoices[].Prepayments[].Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Contact.PaymentTerms.Sales Object No
Invoices[].Prepayments[].Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].Prepayments[].Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].Prepayments[].Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].Prepayments[].Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].Prepayments[].Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].Prepayments[].Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].Prepayments[].Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].Prepayments[].Contact.ContactPersons[] Array No

See contact persons

Invoices[].Prepayments[].Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].Prepayments[].Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].Prepayments[].Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].Prepayments[].Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].Prepayments[].HasAttachments Boolean No

boolean to indicate if a prepayment has an attachment

Default value: false

Invoices[].Prepayments[].CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].Prepayments[].PrepaymentID String No

Xero generated unique identifier

Invoices[].BrandingThemeID String No

See BrandingThemes

Invoices[].Status String No

See Invoice Status Codes

Possible values:

  • "DELETED"
  • "AUTHORISED"
  • "SUBMITTED"
  • "DRAFT"
  • "PAID"
  • "VOIDED"
Invoices[].ValidationErrors[] Array No

Displays array of validation error messages from the API

Invoices[].ValidationErrors[].Message String No

Validation error message

Invoices[].CreditNotes[] Array No

Details of credit notes that have been applied to an invoice

Invoices[].CreditNotes[].HasErrors Boolean No

A boolean to indicate if a credit note has an validation errors

Default value: false

Invoices[].CreditNotes[].Payments[] Array No

See Payments

Invoices[].CreditNotes[].Total Number No

The total of the Credit Note(subtotal + total tax)

Invoices[].CreditNotes[].FullyPaidOnDate String No

Date when credit note was fully paid(UTC format)

Invoices[].CreditNotes[].InvoiceAddresses[] Array No

An array of addresses used to auto calculate sales tax

Invoices[].CreditNotes[].InvoiceAddresses[].City String No

City of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].AddressLine2 String No

Second line of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].Region String No

Region or state of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].Country String No

Country of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].AddressLine1 String No

First line of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].InvoiceAddressType String No

Indicates whether the address is defined as origin (FROM) or destination (TO)

Possible values:

  • "FROM"
  • "TO"
Invoices[].CreditNotes[].InvoiceAddresses[].AddressLine4 String No

Fourth line of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].AddressLine3 String No

Third line of a physical address

Invoices[].CreditNotes[].InvoiceAddresses[].PostalCode String No

Postal code of a physical address

Invoices[].CreditNotes[].UpdatedDateUTC String No

UTC timestamp of last update to the credit note

Invoices[].CreditNotes[].CurrencyRate Number No

The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used

Invoices[].CreditNotes[].RemainingCredit Number No

The remaining credit balance on the Credit Note

Invoices[].CreditNotes[].Allocations[] Array No

See Allocations

Invoices[].CreditNotes[].Contact Object No
Invoices[].CreditNotes[].Contact.BankAccountDetails String No

Bank account number of contact

Invoices[].CreditNotes[].Contact.Website String No

Website address for contact (read only)

Invoices[].CreditNotes[].Contact.Name String No

Full name of contact/organisation (max length = 255)

Invoices[].CreditNotes[].Contact.SalesTrackingCategories[] Array No

The default sales tracking categories for contacts

Invoices[].CreditNotes[].Contact.SalesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].CreditNotes[].Contact.SalesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].CreditNotes[].Contact.SalesDefaultLineAmountType String No

The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].CreditNotes[].Contact.TrackingCategoryOption String No

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].CreditNotes[].Contact.TaxNumber String No

Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Invoices[].CreditNotes[].Contact.TrackingCategoryName String No

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Invoices[].CreditNotes[].Contact.LastName String No

Last name of contact person (max length = 255)

Invoices[].CreditNotes[].Contact.IsSupplier Boolean No

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.

Invoices[].CreditNotes[].Contact.PurchasesTrackingCategories[] Array No

The default purchases tracking categories for contacts

Invoices[].CreditNotes[].Contact.PurchasesTrackingCategories[].TrackingOptionName String No

The default purchase tracking category name for contacts

Invoices[].CreditNotes[].Contact.PurchasesTrackingCategories[].TrackingCategoryName String No

The default sales tracking category name for contacts

Invoices[].CreditNotes[].Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

Invoices[].CreditNotes[].Contact.BrandingTheme Object No
Invoices[].CreditNotes[].Contact.BrandingTheme.Name String No

Name of branding theme

Invoices[].CreditNotes[].Contact.BrandingTheme.BrandingThemeID String No

Xero identifier

Invoices[].CreditNotes[].Contact.BrandingTheme.Type String No

Always INVOICE

Possible values:

  • "INVOICE"
Invoices[].CreditNotes[].Contact.BrandingTheme.LogoUrl String No

The location of the image file used as the logo on this branding theme

Invoices[].CreditNotes[].Contact.BrandingTheme.SortOrder Integer No

Integer – ranked order of branding theme. The default branding theme has a value of 0

Invoices[].CreditNotes[].Contact.BrandingTheme.CreatedDateUTC String No

UTC timestamp of creation date of branding theme

Invoices[].CreditNotes[].Contact.IsCustomer Boolean No

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.

Invoices[].CreditNotes[].Contact.PurchasesDefaultLineAmountType String No

The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.

Possible values:

  • "INCLUSIVE"
  • "NONE"
  • "EXCLUSIVE"
Invoices[].CreditNotes[].Contact.Attachments[] Array No

Displays array of attachments from the API

Invoices[].CreditNotes[].Contact.Attachments[].ContentLength Integer No

Length of the file content

Invoices[].CreditNotes[].Contact.Attachments[].IncludeOnline Boolean No

Include the file with the online invoice

Invoices[].CreditNotes[].Contact.Attachments[].AttachmentID String No

Unique ID for the file

Invoices[].CreditNotes[].Contact.Attachments[].MimeType String No

Type of file

Invoices[].CreditNotes[].Contact.Attachments[].Url String No

URL to the file on xero.com

Invoices[].CreditNotes[].Contact.Attachments[].FileName String No

Name of the file

Invoices[].CreditNotes[].Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Invoices[].CreditNotes[].Contact.ContactID String No

Xero identifier

Invoices[].CreditNotes[].Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Invoices[].CreditNotes[].Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

  • "ARCHIVED"
  • "ACTIVE"
  • "GDPRREQUEST"
Invoices[].CreditNotes[].Contact.Addresses[] Array No

Store certain address types for a contact – see address types

Invoices[].CreditNotes[].Contact.Addresses[].City String No

max length = 255

Invoices[].CreditNotes[].Contact.Addresses[].AddressType String No

define the type of address

Possible values:

  • "STREET"
  • "POBOX"
Invoices[].CreditNotes[].Contact.Addresses[].AttentionTo String No

max length = 255

Invoices[].CreditNotes[].Contact.Addresses[].AddressLine2 String No

max length = 500

Invoices[].CreditNotes[].Contact.Addresses[].Region String No

max length = 255

Invoices[].CreditNotes[].Contact.Addresses[].Country String No

max length = 50, [A-Z], [a-z] only

Invoices[].CreditNotes[].Contact.Addresses[].AddressLine1 String No

max length = 500

Invoices[].CreditNotes[].Contact.Addresses[].AddressLine4 String No

max length = 500

Invoices[].CreditNotes[].Contact.Addresses[].AddressLine3 String No

max length = 500

Invoices[].CreditNotes[].Contact.Addresses[].PostalCode String No

max length = 50

Invoices[].CreditNotes[].Contact.StatusAttributeString String No

Status of object

Invoices[].CreditNotes[].Contact.CompanyNumber String No

Company registration number (max length = 50)

Invoices[].CreditNotes[].Contact.Phones[] Array No

Store certain phone types for a contact – see phone types

Invoices[].CreditNotes[].Contact.Phones[].PhoneType String No

Possible values:

  • "DEFAULT"
  • "OFFICE"
  • "DDI"
  • "MOBILE"
  • "FAX"
Invoices[].CreditNotes[].Contact.Phones[].PhoneNumber String No

max length = 50

Invoices[].CreditNotes[].Contact.Phones[].PhoneAreaCode String No

max length = 10

Invoices[].CreditNotes[].Contact.Phones[].PhoneCountryCode String No

max length = 20

Invoices[].CreditNotes[].Contact.BatchPayments No

Bank details for use on a batch payment stored with each contact

Invoices[].CreditNotes[].Contact.FirstName String No

First name of contact person (max length = 255)

Invoices[].CreditNotes[].Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

Invoices[].CreditNotes[].Contact.ContactNumber String No

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Invoices[].CreditNotes[].Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

Invoices[].CreditNotes[].Contact.DefaultCurrency String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].CreditNotes[].Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

Invoices[].CreditNotes[].Contact.AccountNumber String No

A user defined account number. This can be updated via the API and the Xero UI (max length = 50)

Invoices[].CreditNotes[].Contact.Balances Object No

The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)

Invoices[].CreditNotes[].Contact.Balances.AccountsReceivable Object No
Invoices[].CreditNotes[].Contact.Balances.AccountsReceivable.Overdue Number No
Invoices[].CreditNotes[].Contact.Balances.AccountsReceivable.Outstanding Number No
Invoices[].CreditNotes[].Contact.Balances.AccountsPayable Object No
Invoices[].CreditNotes[].Contact.Balances.AccountsPayable.Overdue Number No
Invoices[].CreditNotes[].Contact.Balances.AccountsPayable.Outstanding Number No
Invoices[].CreditNotes[].Contact.XeroNetworkKey String No

Store XeroNetworkKey for contacts.

Invoices[].CreditNotes[].Contact.Discount Number No

The default discount rate for the contact (read only)

Invoices[].CreditNotes[].Contact.MergedToContactID String No

ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.

Invoices[].CreditNotes[].Contact.ValidationErrors[] Array No

Displays validation errors returned from the API

Invoices[].CreditNotes[].Contact.ValidationErrors[].Message String No

Validation error message

Invoices[].CreditNotes[].Contact.EmailAddress String No

Email address of contact person (umlauts not supported) (max length = 255)

Invoices[].CreditNotes[].Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

Invoices[].CreditNotes[].Contact.PaymentTerms Object No
Invoices[].CreditNotes[].Contact.PaymentTerms.Bills Object No
Invoices[].CreditNotes[].Contact.PaymentTerms.Bills.Day Integer No

Day of Month (0-31)

Invoices[].CreditNotes[].Contact.PaymentTerms.Bills.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].CreditNotes[].Contact.PaymentTerms.Sales Object No
Invoices[].CreditNotes[].Contact.PaymentTerms.Sales.Day Integer No

Day of Month (0-31)

Invoices[].CreditNotes[].Contact.PaymentTerms.Sales.Type String No

Possible values:

  • "DAYSAFTERBILLMONTH"
  • "OFCURRENTMONTH"
  • "DAYSAFTERBILLDATE"
  • "OFFOLLOWINGMONTH"
Invoices[].CreditNotes[].Contact.ContactGroups[] Array No

Displays which contact groups a contact is included in

Invoices[].CreditNotes[].Contact.ContactGroups[].Name String No

The Name of the contact group. Required when creating a new contact group

Invoices[].CreditNotes[].Contact.ContactGroups[].Status String No

The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.

Possible values:

  • "DELETED"
  • "ACTIVE"
Invoices[].CreditNotes[].Contact.ContactGroups[].ContactGroupID String No

The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9

Invoices[].CreditNotes[].Contact.ContactGroups[].Contacts[] Array No

The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.

Invoices[].CreditNotes[].Contact.ContactPersons[] Array No

See contact persons

Invoices[].CreditNotes[].Contact.ContactPersons[].IncludeInEmails Boolean No

boolean to indicate whether contact should be included on emails with invoices etc.

Invoices[].CreditNotes[].Contact.ContactPersons[].EmailAddress String No

Email address of person

Invoices[].CreditNotes[].Contact.ContactPersons[].LastName String No

Last name of person

Invoices[].CreditNotes[].Contact.ContactPersons[].FirstName String No

First name of person

Invoices[].CreditNotes[].CurrencyCode String No

3 letter alpha code for the currency – see list of currency codes

Possible values:

  • "ISK"
  • "JMD"
  • "LTL"
  • "SVC"
  • "SAR"
  • "EEK"
  • "TTD"
  • "SBD"
  • "SHP"
  • "GBP"
  • "TRY"
  • "MOP"
  • "INR"
  • "MAD"
  • "CUP"
  • "CLF"
  • "SRD"
  • "SZL"
  • "IRR"
  • "CHF"
  • "EUR"
  • "KZT"
  • "ALL"
  • "MZN"
  • "CDF"
  • "BZD"
  • "KES"
  • "AOA"
  • "NGN"
  • "SEK"
  • "BND"
  • "UYU"
  • "BRL"
  • "YER"
  • "ANG"
  • "BYR"
  • "MRO"
  • "DJF"
  • "LSL"
  • "BBD"
  • "MGA"
  • "VND"
  • "DOP"
  • "TJS"
  • "FJD"
  • "BGN"
  • "TWD"
  • "QAR"
  • "VES"
  • "CNY"
  • "AUD"
  • "ZMW"
  • "WST"
  • "MDL"
  • "KHR"
  • "NZD"
  • "AMD"
  • "AZN"
  • "TZS"
  • "GIP"
  • "AED"
  • "AFN"
  • "DZD"
  • "PKR"
  • "KYD"
  • "AWG"
  • "BSD"
  • "PEN"
  • "XAF"
  • "NAD"
  • "ZWD"
  • "BTN"
  • "KRW"
  • "NPR"
  • "FKP"
  • "TND"
  • "LVL"
  • "MWK"
  • "JOD"
  • "LRD"
  • "RSD"
  • "SCR"
  • "HUF"
  • "IDR"
  • "LAK"
  • "UAH"
  • "ZAR"
  • "OMR"
  • "PGK"
  • "SLL"
  • "MVR"
  • "USD"
  • "MXV"
  • "MKD"
  • "COP"
  • "CAD"
  • "KMF"
  • "MXN"
  • "PYG"
  • "XCD"
  • "STD"
  • "IQD"
  • "TOP"
  • "VEF"
  • "VUV"
  • "SOS"
  • "CVE"
  • "CUC"
  • "KGS"
  • "TMT"
  • "THB"
  • "BOB"
  • "UZS"
  • "BYN"
  • "SKK"
  • "ILS"
  • "PLN"
  • "RON"
  • "BHD"
  • "BIF"
  • "SLE"
  • "XPF"
  • "ARS"
  • "GTQ"
  • "RUB"
  • "HKD"
  • "ZMK"
  • "RWF"
  • "BDT"
  • "ETB"
  • "LYD"
  • "JPY"
  • "SGD"
  • "STN"
  • "MNT"
  • "NIO"
  • "GEL"
  • "MUR"
  • "NOK"
  • "ERN"
  • "SYP"
  • "MYR"
  • "DKK"
  • "HRK"
  • "CLP"
  • "GNF"
  • "GMD"
  • "BAM"
  • "HTG"
  • "LBP"
  • "PHP"
  • "EGP"
  • "SDG"
  • "CRC"
  • "CZK"
  • "KWD"
  • "KPW"
  • "GHS"
  • "GYD"
  • "LKR"
  • "BMD"
  • "BWP"
  • "MRU"
  • "PAB"
  • "UGX"
  • "MMK"
  • "XOF"
  • "HNL"
Invoices[].CreditNotes[].CreditNoteID String No

Xero generated unique identifier

Invoices[].CreditNotes[].LineAmountTypes String No

Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types

Possible values:

  • "Inclusive"
  • "Exclusive"
  • "NoTax"
Invoices[].CreditNotes[].Date String No

The date the credit note is issued YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation

Invoices[].CreditNotes[].CISDeduction Number No

CIS deduction for UK contractors

Invoices[].CreditNotes[].SentToContact Boolean No

Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved

Invoices[].CreditNotes[].Warnings[] Array No

Displays array of warning messages from the API

Invoices[].CreditNotes[].Warnings[].Message String No

Validation error message

Invoices[].CreditNotes[].Type String No

See Credit Note Types

Possible values:

  • "ACCPAYCREDIT"
  • "ACCRECCREDIT"
Invoices[].CreditNotes[].StatusAttributeString String No

A string to indicate if a invoice status

Invoices[].CreditNotes[].DueDate String No

Date invoice is due – YYYY-MM-DD

Invoices[].CreditNotes[].CISRate Number No

CIS Deduction rate for the organisation

Invoices[].CreditNotes[].TotalTax Number No

The total tax on the credit note

Invoices[].CreditNotes[].Reference String No

ACCRECCREDIT only – additional reference number

Invoices[].CreditNotes[].LineItems[] Array No

See Invoice Line Items

Invoices[].CreditNotes[].LineItems[].Quantity Number No

LineItem Quantity

Invoices[].CreditNotes[].LineItems[].UnitAmount Number No

LineItem Unit Amount

Invoices[].CreditNotes[].LineItems[].TaxAmount Number No

The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated is not correct.

Invoices[].CreditNotes[].LineItems[].Item No
Invoices[].CreditNotes[].LineItems[].AccountCode String No

See Accounts

Invoices[].CreditNotes[].LineItems[].RepeatingInvoiceID String No

The Xero identifier for a Repeating Invoice

Invoices[].CreditNotes[].LineItems[].LineItemID String No

LineItem unique ID

Invoices[].CreditNotes[].LineItems[].Description String No

Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a element that contains at least 1 character

Invoices[].CreditNotes[].LineItems[].TaxType String No

The tax type from TaxRates

Invoices[].CreditNotes[].LineItems[].Taxability String No

The type of taxability

Possible values:

  • "NOT_APPLICABLE"
  • "EXEMPT"
  • "PART_TAXABLE"
  • "TAXABLE"
  • "NON_TAXABLE"
Invoices[].CreditNotes[].LineItems[].TaxBreakdown[] Array No

An array of tax components defined for this line item

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].TaxComponentId String No

The unique ID number of this component

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].Name String No

The name of the jurisdiction

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].Type String No

The type of the jurisdiction

Possible values:

  • "SYSGST/USSPECIAL"
  • "SYSGST/USCOUNTRY"
  • "SYSGST/USCOUNTY"
  • "SYSGST/USSTATE"
  • "SYSGST/USCITY"
Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].TaxAmount Number No

The amount of the tax

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].TaxableAmount Number No

The amount that is taxable

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].NonTaxableAmount Number No

The amount that is not taxable

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].TaxPercentage Number No

The percentage of the tax

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].ExemptAmount Number No

The amount that is exempt

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].StateAssignedNo String No

The state assigned number of the jurisdiction

Invoices[].CreditNotes[].LineItems[].TaxBreakdown[].JurisdictionRegion String No

Name identifying the region within the country

Invoices[].CreditNotes[].LineItems[].LineAmount Number No

If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount

Invoices[].CreditNotes[].LineItems[].AccountID String No

The associated account ID related to this line item

Invoices[].CreditNotes[].LineItems[].SalesTaxCodeId Number No

The ID of the sales tax code

Invoices[].CreditNotes[].LineItems[].ItemCode String No

See Items

Invoices[].CreditNotes[].LineItems[].Tracking[] Array No

Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 elements.

Invoices[].CreditNotes[].LineItems[].Tracking[].TrackingCategoryID String No

The Xero identifier for a tracking category

Invoices[].CreditNotes[].LineItems[].Tracking[].Name String No

The name of the tracking category

Invoices[].CreditNotes[].LineItems[].Tracking[].Option String No

See Tracking Options

Invoices[].CreditNotes[].LineItems[].Tracking[].TrackingOptionID String No

The Xero identifier for a tracking category option

Invoices[].CreditNotes[].LineItems[].DiscountAmount Number No

Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.

Invoices[].CreditNotes[].LineItems[].DiscountRate Number No

Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts

Invoices[].CreditNotes[].SubTotal Number No

The subtotal of the credit note excluding taxes

Invoices[].CreditNotes[].Status String No

See Credit Note Status Codes

Possible values:

  • "DELETED"
  • "AUTHORISED"
  • "SUBMITTED"
  • "DRAFT"
  • "PAID"
  • "VOIDED"
Invoices[].CreditNotes[].BrandingThemeID String No

See BrandingThemes

Invoices[].CreditNotes[].AppliedAmount Number No

The amount of applied to an invoice

Invoices[].CreditNotes[].ValidationErrors[] Array No

Displays array of validation error messages from the API

Invoices[].CreditNotes[].ValidationErrors[].Message String No

Validation error message

Invoices[].CreditNotes[].HasAttachments Boolean No

boolean to indicate if a credit note has an attachment

Default value: false

Invoices[].CreditNotes[].CreditNoteNumber String No

ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings)

Invoices[].HasAttachments Boolean No

boolean to indicate if an invoice has an attachment

Default value: false

Invoices[].AmountPaid Number No

Sum of payments received for invoice

Invoices[].ExpectedPaymentDate String No

Shown on sales invoices (Accounts Receivable) when this has been set

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.