PUT /CreditNotes/{CreditNoteID}/Allocations

Servers

Path parameters

Name Type Required Description
CreditNoteID String Yes

Unique identifier for a Credit Note

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
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
Allocations[] Array No
Allocations[].Amount Number Yes

the amount being applied to the invoice

Allocations[].Date String Yes

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

Allocations[].Prepayment No
Allocations[].Overpayment Object No
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"
Allocations[].Overpayment.Date String No

The date the overpayment is created YYYY-MM-DD

Allocations[].Overpayment.Payments[] Array No

See Payments

Allocations[].Overpayment.Type String No

See Overpayment Types

Possible values:

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

The total of the overpayment (subtotal + total tax)

Allocations[].Overpayment.TotalTax Number No

The total tax on the overpayment

Allocations[].Overpayment.LineItems[] Array No

See Overpayment Line Items

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

LineItem Quantity

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

LineItem Unit Amount

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.

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

See Accounts

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

The Xero identifier for a Repeating Invoice

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

LineItem unique ID

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

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

The tax type from TaxRates

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

The type of taxability

Possible values:

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

An array of tax components defined for this line item

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

The unique ID number of this component

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

The name of the jurisdiction

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

The type of the jurisdiction

Possible values:

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

The amount of the tax

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

The amount that is taxable

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

The amount that is not taxable

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

The percentage of the tax

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

The amount that is exempt

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

The state assigned number of the jurisdiction

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

Name identifying the region within the country

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

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

The associated account ID related to this line item

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

The ID of the sales tax code

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

See Items

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

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

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

The Xero identifier for a tracking category

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

The name of the tracking category

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

See Tracking Options

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

The Xero identifier for a tracking category option

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.

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

Allocations[].Overpayment.UpdatedDateUTC String No

UTC timestamp of last update to the overpayment

Allocations[].Overpayment.SubTotal Number No

The subtotal of the overpayment excluding taxes

Allocations[].Overpayment.CurrencyRate Number No

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

Allocations[].Overpayment.Status String No

See Overpayment Status Codes

Possible values:

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

Xero generated unique identifier

Allocations[].Overpayment.AppliedAmount Number No

The amount of applied to an invoice

Allocations[].Overpayment.Attachments[] Array No

See Attachments

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

Length of the file content

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

Include the file with the online invoice

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

Unique ID for the file

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

Type of file

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

URL to the file on xero.com

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

Name of the file

Allocations[].Overpayment.RemainingCredit Number No

The remaining credit balance on the overpayment

Allocations[].Overpayment.Allocations[] Array No

See Allocations

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

Bank account number of contact

Allocations[].Overpayment.Contact.Website String No

Website address for contact (read only)

Allocations[].Overpayment.Contact.Name String No

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

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

The default sales tracking categories for contacts

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

The default purchase tracking category name for contacts

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

The default sales tracking category name for contacts

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"
Allocations[].Overpayment.Contact.TrackingCategoryOption String No

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

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)

Allocations[].Overpayment.Contact.TrackingCategoryName String No

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

Allocations[].Overpayment.Contact.LastName String No

Last name of contact person (max length = 255)

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.

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

The default purchases tracking categories for contacts

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

The default purchase tracking category name for contacts

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

The default sales tracking category name for contacts

Allocations[].Overpayment.Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

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

Name of branding theme

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

Xero identifier

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

Always INVOICE

Possible values:

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

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

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

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

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

UTC timestamp of creation date of branding theme

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.

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"
Allocations[].Overpayment.Contact.Attachments[] Array No

Displays array of attachments from the API

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

Length of the file content

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

Include the file with the online invoice

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

Unique ID for the file

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

Type of file

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

URL to the file on xero.com

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

Name of the file

Allocations[].Overpayment.Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Allocations[].Overpayment.Contact.ContactID String No

Xero identifier

Allocations[].Overpayment.Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Allocations[].Overpayment.Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

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

Store certain address types for a contact – see address types

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

max length = 255

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

define the type of address

Possible values:

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

max length = 255

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

max length = 500

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

max length = 255

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

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

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

max length = 500

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

max length = 500

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

max length = 500

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

max length = 50

Allocations[].Overpayment.Contact.StatusAttributeString String No

Status of object

Allocations[].Overpayment.Contact.CompanyNumber String No

Company registration number (max length = 50)

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

Store certain phone types for a contact – see phone types

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

Possible values:

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

max length = 50

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

max length = 10

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

max length = 20

Allocations[].Overpayment.Contact.BatchPayments No

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

Allocations[].Overpayment.Contact.FirstName String No

First name of contact person (max length = 255)

Allocations[].Overpayment.Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

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.

Allocations[].Overpayment.Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

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"
Allocations[].Overpayment.Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

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)

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)

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

Store XeroNetworkKey for contacts.

Allocations[].Overpayment.Contact.Discount Number No

The default discount rate for the contact (read only)

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.

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

Displays validation errors returned from the API

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

Validation error message

Allocations[].Overpayment.Contact.EmailAddress String No

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

Allocations[].Overpayment.Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

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

Day of Month (0-31)

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

Possible values:

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

Day of Month (0-31)

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

Possible values:

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

Displays which contact groups a contact is included in

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

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

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"
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

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.

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

See contact persons

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

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

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

Email address of person

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

Last name of person

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

First name of person

Allocations[].Overpayment.HasAttachments Boolean No

boolean to indicate if a overpayment has an attachment

Default value: false

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"
Allocations[].StatusAttributeString String No

A string to indicate if a invoice status

Allocations[].ValidationErrors[] Array No

Displays array of validation error messages from the API

Allocations[].ValidationErrors[].Message String No

Validation error message

Allocations[].IsDeleted Boolean No

A flag that returns true when the allocation is succesfully deleted

Allocations[].AllocationID String No

Xero generated unique identifier

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

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

Default value: false

Allocations[].CreditNote.Payments[] Array No

See Payments

Allocations[].CreditNote.Total Number No

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

Allocations[].CreditNote.FullyPaidOnDate String No

Date when credit note was fully paid(UTC format)

Allocations[].CreditNote.InvoiceAddresses[] Array No

An array of addresses used to auto calculate sales tax

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

City of a physical address

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

Second line of a physical address

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

Region or state of a physical address

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

Country of a physical address

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

First line of a physical address

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

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

Possible values:

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

Fourth line of a physical address

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

Third line of a physical address

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

Postal code of a physical address

Allocations[].CreditNote.UpdatedDateUTC String No

UTC timestamp of last update to the credit note

Allocations[].CreditNote.CurrencyRate Number No

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

Allocations[].CreditNote.RemainingCredit Number No

The remaining credit balance on the Credit Note

Allocations[].CreditNote.Allocations[] Array No

See Allocations

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

Bank account number of contact

Allocations[].CreditNote.Contact.Website String No

Website address for contact (read only)

Allocations[].CreditNote.Contact.Name String No

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

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

The default sales tracking categories for contacts

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

The default purchase tracking category name for contacts

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

The default sales tracking category name for contacts

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"
Allocations[].CreditNote.Contact.TrackingCategoryOption String No

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

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)

Allocations[].CreditNote.Contact.TrackingCategoryName String No

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

Allocations[].CreditNote.Contact.LastName String No

Last name of contact person (max length = 255)

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.

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

The default purchases tracking categories for contacts

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

The default purchase tracking category name for contacts

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

The default sales tracking category name for contacts

Allocations[].CreditNote.Contact.UpdatedDateUTC String No

UTC timestamp of last update to contact

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

Name of branding theme

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

Xero identifier

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

Always INVOICE

Possible values:

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

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

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

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

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

UTC timestamp of creation date of branding theme

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.

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"
Allocations[].CreditNote.Contact.Attachments[] Array No

Displays array of attachments from the API

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

Length of the file content

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

Include the file with the online invoice

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

Unique ID for the file

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

Type of file

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

URL to the file on xero.com

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

Name of the file

Allocations[].CreditNote.Contact.PurchasesDefaultAccountCode String No

The default purchases account code for contacts

Allocations[].CreditNote.Contact.ContactID String No

Xero identifier

Allocations[].CreditNote.Contact.AccountsPayableTaxType String No

The tax type from TaxRates

Allocations[].CreditNote.Contact.ContactStatus String No

Current status of a contact – see contact status types

Possible values:

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

Store certain address types for a contact – see address types

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

max length = 255

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

define the type of address

Possible values:

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

max length = 255

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

max length = 500

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

max length = 255

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

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

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

max length = 500

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

max length = 500

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

max length = 500

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

max length = 50

Allocations[].CreditNote.Contact.StatusAttributeString String No

Status of object

Allocations[].CreditNote.Contact.CompanyNumber String No

Company registration number (max length = 50)

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

Store certain phone types for a contact – see phone types

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

Possible values:

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

max length = 50

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

max length = 10

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

max length = 20

Allocations[].CreditNote.Contact.BatchPayments No

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

Allocations[].CreditNote.Contact.FirstName String No

First name of contact person (max length = 255)

Allocations[].CreditNote.Contact.SalesDefaultAccountCode String No

The default sales account code for contacts

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.

Allocations[].CreditNote.Contact.AccountsReceivableTaxType String No

The tax type from TaxRates

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"
Allocations[].CreditNote.Contact.HasValidationErrors Boolean No

A boolean to indicate if a contact has an validation errors

Default value: false

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)

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)

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

Store XeroNetworkKey for contacts.

Allocations[].CreditNote.Contact.Discount Number No

The default discount rate for the contact (read only)

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.

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

Displays validation errors returned from the API

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

Validation error message

Allocations[].CreditNote.Contact.EmailAddress String No

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

Allocations[].CreditNote.Contact.HasAttachments Boolean No

A boolean to indicate if a contact has an attachment

Default value: false

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

Day of Month (0-31)

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

Possible values:

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

Day of Month (0-31)

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

Possible values:

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

Displays which contact groups a contact is included in

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

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

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"
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

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.

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

See contact persons

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

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

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

Email address of person

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

Last name of person

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

First name of person

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"
Allocations[].CreditNote.CreditNoteID String No

Xero generated unique identifier

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"
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

Allocations[].CreditNote.CISDeduction Number No

CIS deduction for UK contractors

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

Allocations[].CreditNote.Warnings[] Array No

Displays array of warning messages from the API

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

Validation error message

Allocations[].CreditNote.Type String No

See Credit Note Types

Possible values:

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

A string to indicate if a invoice status

Allocations[].CreditNote.DueDate String No

Date invoice is due – YYYY-MM-DD

Allocations[].CreditNote.CISRate Number No

CIS Deduction rate for the organisation

Allocations[].CreditNote.TotalTax Number No

The total tax on the credit note

Allocations[].CreditNote.Reference String No

ACCRECCREDIT only – additional reference number

Allocations[].CreditNote.LineItems[] Array No

See Invoice Line Items

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

LineItem Quantity

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

LineItem Unit Amount

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.

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

See Accounts

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

The Xero identifier for a Repeating Invoice

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

LineItem unique ID

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

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

The tax type from TaxRates

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

The type of taxability

Possible values:

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

An array of tax components defined for this line item

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

The unique ID number of this component

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

The name of the jurisdiction

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

The type of the jurisdiction

Possible values:

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

The amount of the tax

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

The amount that is taxable

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

The amount that is not taxable

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

The percentage of the tax

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

The amount that is exempt

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

The state assigned number of the jurisdiction

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

Name identifying the region within the country

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

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

The associated account ID related to this line item

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

The ID of the sales tax code

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

See Items

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

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

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

The Xero identifier for a tracking category

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

The name of the tracking category

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

See Tracking Options

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

The Xero identifier for a tracking category option

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.

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

Allocations[].CreditNote.SubTotal Number No

The subtotal of the credit note excluding taxes

Allocations[].CreditNote.Status String No

See Credit Note Status Codes

Possible values:

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

See BrandingThemes

Allocations[].CreditNote.AppliedAmount Number No

The amount of applied to an invoice

Allocations[].CreditNote.ValidationErrors[] Array No

Displays array of validation error messages from the API

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

Validation error message

Allocations[].CreditNote.HasAttachments Boolean No

boolean to indicate if a credit note has an attachment

Default value: false

Allocations[].CreditNote.CreditNoteNumber String No

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

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.