Query structured spec data via REST or MCP. Get exactly what your agent needs.
https://api.xero.com/api.xro/2.0
/Accounts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Account object in body of request
application/json
Account
| Property | Type | Required |
|---|---|---|
| Code | string | optional |
| Name | string | optional |
| Type | string | optional |
| Class | string | optional |
| Status | string | optional |
| TaxType | string | optional |
| AccountID | string | optional |
| Description | string | optional |
| CurrencyCode | string | optional |
| ReportingCode | string | optional |
| SystemAccount | string | optional |
| AddToWatchlist | boolean | optional |
| HasAttachments | boolean | optional |
| UpdatedDateUTC | string | optional |
| BankAccountType | string | optional |
| ValidationErrors | array | optional |
| └ Message | string | optional |
| BankAccountNumber | string | optional |
| ReportingCodeName | string | optional |
| ShowInExpenseClaims | boolean | optional |
| EnablePaymentsToAccount | boolean | optional |
Success - created new Account and return response of type Accounts array with new Account
Validation Error - some data was incorrect returns response of type Error
PUT /Accounts
/Accounts/{AccountID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| AccountID | path | optional | string | Unique identifier for Account object |
| FileName | path | optional | string | Name of the attachment |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Byte array of file in body of request
application/octet-stream
AccountingCreateAttachmentRequest
Success - return response of type Attachments array of Attachment
A failed request due to validation error
PUT /Accounts/{AccountID}/Attachments/{FileName}
/BankTransactions
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| unitdp | query | optional | integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
BankTransactions with an array of BankTransaction objects in body of request
application/json
BankTransactions
| Property | Type | Required |
|---|---|---|
| BankTransactions | array | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | required |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | required |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ BankAccount | object | required |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ PrepaymentID | string | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ …2 more | object | optional |
Success - return response of type BankTransactions array with new BankTransaction
A failed request due to validation error
PUT /BankTransactions
/BankTransactions/{BankTransactionID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| BankTransactionID | path | optional | string | Xero generated unique identifier for a bank transaction |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreateBankTransactionAttachmentByFilenameRequest
Success - return response of Attachments array of Attachment
A failed request due to validation error
PUT /BankTransactions/{BankTransactionID}/Attachments/{FileName}
/BankTransactions/{BankTransactionID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| BankTransactionID | path | optional | string | Xero generated unique identifier for a bank transaction |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /BankTransactions/{BankTransactionID}/History
/BankTransfers
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
BankTransfers with array of BankTransfer objects in request body
application/json
BankTransfers
| Property | Type | Required |
|---|---|---|
| BankTransfers | array | optional |
| └ Date | string | optional |
| └ Amount | number | required |
| └ Reference | string | optional |
| └ CurrencyRate | number | optional |
| └ ToBankAccount | object | required |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ BankTransferID | string | optional |
| └ CreatedDateUTC | string | optional |
| └ HasAttachments | boolean | optional |
| └ ToIsReconciled | boolean | optional |
| └ FromBankAccount | object | required |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ FromIsReconciled | boolean | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ ToBankTransactionID | string | optional |
| └ FromBankTransactionID | string | optional |
Success - return response of BankTransfers array of one BankTransfer
A failed request due to validation error
PUT /BankTransfers
/BankTransfers/{BankTransferID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| BankTransferID | path | optional | string | Xero generated unique identifier for a bank transfer |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingUpdateBankTransferAttachmentRequest
Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer
A failed request due to validation error
PUT /BankTransfers/{BankTransferID}/Attachments/{FileName}
/BankTransfers/{BankTransferID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| BankTransferID | path | optional | string | Xero generated unique identifier for a bank transfer |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /BankTransfers/{BankTransferID}/History
/BatchPayments
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
BatchPayments with an array of Payments in body of request
application/json
BatchPayments
| Property | Type | Required |
|---|---|---|
| BatchPayments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ CreditNotes | array | optional |
| └ …20 more | object | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ Narrative | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ Particulars | string | optional |
| └ TotalAmount | number | optional |
| └ IsReconciled | boolean | optional |
| └ BatchPaymentID | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
Success - return response of type BatchPayments array of BatchPayment objects
A failed request due to validation error
PUT /BatchPayments
/BatchPayments/{BatchPaymentID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| BatchPaymentID | path | optional | string | Unique identifier for BatchPayment |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /BatchPayments/{BatchPaymentID}/History
/ContactGroups
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
ContactGroups with an array of names in request body
application/json
ContactGroups
| Property | Type | Required |
|---|---|---|
| ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ ContactGroupID | string | optional |
Success - return response of type Contact Groups array of newly created Contact Group
Validation Error - some data was incorrect returns response of type Error
PUT /ContactGroups
/ContactGroups/{ContactGroupID}/Contacts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ContactGroupID | path | optional | string | Unique identifier for a Contact Group |
Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
application/json
Contacts
| Property | Type | Required |
|---|---|---|
| Contacts | array | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ Overdue | number | optional |
| └ Outstanding | number | optional |
| └ AccountsReceivable | object | optional |
| └ Overdue | number | optional |
| └ Outstanding | number | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Day | integer | optional |
| └ Type | string | optional |
| └ Sales | object | optional |
| └ Day | integer | optional |
| └ Type | string | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
Success - return response of type Contacts array of added Contacts
A failed request due to validation error
PUT /ContactGroups/{ContactGroupID}/Contacts
/Contacts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Contacts with an array of Contact objects to create in body of request
application/json
Contacts
| Property | Type | Required |
|---|---|---|
| Contacts | array | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ Overdue | number | optional |
| └ Outstanding | number | optional |
| └ AccountsReceivable | object | optional |
| └ Overdue | number | optional |
| └ Outstanding | number | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Day | integer | optional |
| └ Type | string | optional |
| └ Sales | object | optional |
| └ Day | integer | optional |
| └ Type | string | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
Success - return response of type Contacts array with newly created Contact
Validation Error - some data was incorrect returns response of type Error
PUT /Contacts
/Contacts/{ContactID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ContactID | path | optional | string | Unique identifier for a Contact |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingUploadAttachmentRequest1
Success - return response of type Attachments array with an newly created Attachment
A failed request due to validation error
PUT /Contacts/{ContactID}/Attachments/{FileName}
/Contacts/{ContactID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ContactID | path | optional | string | Unique identifier for a Contact |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /Contacts/{ContactID}/History
/CreditNotes
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| unitdp | query | optional | integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Credit Notes with array of CreditNote object in body of request
application/json
CreditNotes
| Property | Type | Required |
|---|---|---|
| CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ CreditNotes | array | optional |
| └ …20 more | object | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Payments | array | optional |
| └ Narrative | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ Particulars | string | optional |
| └ TotalAmount | number | optional |
| └ IsReconciled | boolean | optional |
| └ BatchPaymentID | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ CreditNotes | array | optional |
| └ …20 more | object | optional |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
Success - return response of type Credit Notes array of newly created CreditNote
A failed request due to validation error
PUT /CreditNotes
/CreditNotes/{CreditNoteID}/Allocations
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| CreditNoteID | path | optional | string | Unique identifier for a Credit Note |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Allocations with array of Allocation object in body of request.
application/json
Allocations
| Property | Type | Required |
|---|---|---|
| Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ …20 more | object | optional |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
Success - return response of type Allocations array with newly created Allocation for specific Credit Note
A failed request due to validation error
PUT /CreditNotes/{CreditNoteID}/Allocations
/CreditNotes/{CreditNoteID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| CreditNoteID | path | optional | string | Unique identifier for a Credit Note |
| FileName | path | optional | string | Name of the attachment |
| IncludeOnline | query | optional | boolean | Allows an attachment to be seen by the end customer within their online invoice |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Byte array of file in body of request
application/octet-stream
AccountingUpdateCreditNoteAttachmentRequest
Success - return response of type Attachments array with newly created Attachment for specific Credit Note
A failed request due to validation error
PUT /CreditNotes/{CreditNoteID}/Attachments/{FileName}
/CreditNotes/{CreditNoteID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| CreditNoteID | path | optional | string | Unique identifier for a Credit Note |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /CreditNotes/{CreditNoteID}/History
/Currencies
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Currency object in the body of request
application/json
Currency
| Property | Type | Required |
|---|---|---|
| Code | string | optional |
| Description | string | optional |
Unsupported - return response incorrect exception, API is not able to create new Currency
PUT /Currencies
/Employees
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Employees with array of Employee object in body of request
application/json
Employees
| Property | Type | Required |
|---|---|---|
| Employees | array | optional |
| └ Status | string | optional |
| └ LastName | string | optional |
| └ FirstName | string | optional |
| └ EmployeeID | string | optional |
| └ ExternalLink | object | optional |
| └ Url | string | optional |
| └ LinkType | string | optional |
| └ Description | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
Success - return response of type Employees array with new Employee
A failed request due to validation error
PUT /Employees
/ExpenseClaims
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
ExpenseClaims with array of ExpenseClaim object in body of request
application/json
ExpenseClaims
| Property | Type | Required |
|---|---|---|
| ExpenseClaims | array | optional |
| └ User | object | optional |
| └ UserID | string | optional |
| └ LastName | string | optional |
| └ FirstName | string | optional |
| └ EmailAddress | string | optional |
| └ IsSubscriber | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ OrganisationRole | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ CreditNotes | array | optional |
| └ …20 more | object | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Payments | array | optional |
| └ Narrative | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ Particulars | string | optional |
| └ TotalAmount | number | optional |
| └ IsReconciled | boolean | optional |
| └ BatchPaymentID | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ Receipts | array | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ User | object | optional |
| └ UserID | string | optional |
| └ LastName | string | optional |
| └ FirstName | string | optional |
| └ EmailAddress | string | optional |
| └ IsSubscriber | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ OrganisationRole | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ ReceiptID | string | optional |
| └ Reference | string | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ ReceiptNumber | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ ReceiptID | string | optional |
| └ AmountPaid | number | optional |
| └ ReportingDate | string | optional |
| └ ExpenseClaimID | string | optional |
| └ PaymentDueDate | string | optional |
| └ UpdatedDateUTC | string | optional |
Success - return response of type ExpenseClaims array with newly created ExpenseClaim
A failed request due to validation error
PUT /ExpenseClaims
/ExpenseClaims/{ExpenseClaimID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ExpenseClaimID | path | optional | string | Unique identifier for a ExpenseClaim |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
PUT /ExpenseClaims/{ExpenseClaimID}/History
/Invoices
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| unitdp | query | optional | integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Invoices with an array of invoice objects in body of request
application/json
Invoices
| Property | Type | Required |
|---|---|---|
| Invoices | array | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Payments | array | optional |
| └ Narrative | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ Particulars | string | optional |
| └ TotalAmount | number | optional |
| └ IsReconciled | boolean | optional |
| └ BatchPaymentID | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ StatusAttributeString | string | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ …20 more | object | optional |
Success - return response of type Invoices array with newly created Invoice
A failed request due to validation error
PUT /Invoices
/Invoices/{InvoiceID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| InvoiceID | path | optional | string | Unique identifier for an Invoice |
| FileName | path | optional | string | Name of the attachment |
| IncludeOnline | query | optional | boolean | Allows an attachment to be seen by the end customer within their online invoice |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Byte array of file in body of request
application/octet-stream
AccountingCreateAttachmentRequest1
Success - return response of type Attachments array with newly created Attachment
A failed request due to validation error
PUT /Invoices/{InvoiceID}/Attachments/{FileName}
/Invoices/{InvoiceID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| InvoiceID | path | optional | string | Unique identifier for an Invoice |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /Invoices/{InvoiceID}/History
/Items
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| unitdp | query | optional | integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Items with an array of Item objects in body of request
application/json
Items
| Property | Type | Required |
|---|---|---|
| Items | array | optional |
| └ Code | string | required |
| └ Name | string | optional |
| └ IsSold | boolean | optional |
| └ ItemID | string | optional |
| └ Description | string | optional |
| └ IsPurchased | boolean | optional |
| └ SalesDetails | object | optional |
| └ TaxType | string | optional |
| └ UnitPrice | number | optional |
| └ AccountCode | string | optional |
| └ COGSAccountCode | string | optional |
| └ TotalCostPool | number | optional |
| └ QuantityOnHand | number | optional |
| └ UpdatedDateUTC | string | optional |
| └ PurchaseDetails | object | optional |
| └ TaxType | string | optional |
| └ UnitPrice | number | optional |
| └ AccountCode | string | optional |
| └ COGSAccountCode | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ PurchaseDescription | string | optional |
| └ IsTrackedAsInventory | boolean | optional |
| └ StatusAttributeString | string | optional |
| └ InventoryAssetAccountCode | string | optional |
Success - return response of type Items array with newly created Item
A failed request due to validation error
PUT /Items
/Items/{ItemID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ItemID | path | optional | string | Unique identifier for an Item |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
PUT /Items/{ItemID}/History
/LinkedTransactions
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
LinkedTransaction object in body of request
application/json
LinkedTransaction
| Property | Type | Required |
|---|---|---|
| Type | string | optional |
| Status | string | optional |
| ContactID | string | optional |
| UpdatedDateUTC | string | optional |
| SourceLineItemID | string | optional |
| TargetLineItemID | string | optional |
| ValidationErrors | array | optional |
| └ Message | string | optional |
| LinkedTransactionID | string | optional |
| SourceTransactionID | string | optional |
| TargetTransactionID | string | optional |
| SourceTransactionTypeCode | string | optional |
Success - return response of type LinkedTransactions array with newly created LinkedTransaction
A failed request due to validation error
PUT /LinkedTransactions
/ManualJournals
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
ManualJournals array with ManualJournal object in body of request
application/json
ManualJournals
| Property | Type | Required |
|---|---|---|
| ManualJournals | array | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Status | string | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ Narration | string | required |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ JournalLines | array | optional |
| └ IsBlank | boolean | optional |
| └ TaxType | string | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ Status | string | optional |
| └ Options | array | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ ManualJournalID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
| └ ShowOnCashBasisReports | boolean | optional |
Success - return response of type ManualJournals array with newly created ManualJournal
A failed request due to validation error
PUT /ManualJournals
/ManualJournals/{ManualJournalID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ManualJournalID | path | optional | string | Unique identifier for a ManualJournal |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreateSpecificAttachmentRequest
Success - return response of type Attachments array with a newly created Attachment for a ManualJournals
A failed request due to validation error
PUT /ManualJournals/{ManualJournalID}/Attachments/{FileName}
/ManualJournals/{ManualJournalID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ManualJournalID | path | optional | string | Unique identifier for a ManualJournal |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /ManualJournals/{ManualJournalID}/History
/Overpayments/{OverpaymentID}/Allocations
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| OverpaymentID | path | optional | string | Unique identifier for a Overpayment |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Allocations array with Allocation object in body of request
application/json
Allocations
| Property | Type | Required |
|---|---|---|
| Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ …20 more | object | optional |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
Success - return response of type Allocations array with all Allocation for Overpayments
A failed request due to validation error
PUT /Overpayments/{OverpaymentID}/Allocations
/Overpayments/{OverpaymentID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| OverpaymentID | path | optional | string | Unique identifier for a Overpayment |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error - API is not able to create HistoryRecord for Overpayments
PUT /Overpayments/{OverpaymentID}/History
/PaymentServices
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
PaymentServices array with PaymentService object in body of request
application/json
PaymentServices
| Property | Type | Required |
|---|---|---|
| PaymentServices | array | optional |
| └ PayNowText | string | optional |
| └ PaymentServiceID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ PaymentServiceUrl | string | optional |
| └ PaymentServiceName | string | optional |
| └ PaymentServiceType | string | optional |
Success - return response of type PaymentServices array for newly created PaymentService
A failed request due to validation error
PUT /PaymentServices
/Payments
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Payments array with Payment object in body of request
application/json
Payments
| Property | Type | Required |
|---|---|---|
| Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ …20 more | object | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ StatusAttributeString | string | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ StatusAttributeString | string | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ StatusAttributeString | string | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ Class | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ AccountID | string | optional |
| └ Description | string | optional |
| └ CurrencyCode | string | optional |
| └ ReportingCode | string | optional |
| └ SystemAccount | string | optional |
| └ AddToWatchlist | boolean | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BankAccountType | string | optional |
| └ ValidationErrors | array | optional |
| └ BankAccountNumber | string | optional |
| └ ReportingCodeName | string | optional |
| └ ShowInExpenseClaims | boolean | optional |
| └ EnablePaymentsToAccount | boolean | optional |
| └ Details | string | optional |
| └ Payments | array | optional |
| └ Narrative | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ Particulars | string | optional |
| └ TotalAmount | number | optional |
| └ IsReconciled | boolean | optional |
| └ BatchPaymentID | string | optional |
| └ UpdatedDateUTC | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
Success - return response of type Payments array for newly created Payment
A failed request due to validation error
PUT /Payments
/Payments/{PaymentID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| PaymentID | path | optional | string | Unique identifier for a Payment |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error - API is not able to create HistoryRecord for Payments
PUT /Payments/{PaymentID}/History
/Prepayments/{PrepaymentID}/Allocations
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| PrepaymentID | path | optional | string | Unique identifier for a PrePayment |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Allocations with an array of Allocation object in body of request
application/json
Allocations
| Property | Type | Required |
|---|---|---|
| Allocations | array | optional |
| └ Date | string | required |
| └ Amount | number | required |
| └ Invoice | object | required |
| └ Url | string | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ AmountDue | number | optional |
| └ HasErrors | boolean | optional |
| └ InvoiceID | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ AmountPaid | number | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CreditNotes | array | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ …20 more | object | optional |
| └ IsDeleted | boolean | optional |
| └ CreditNote | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ CISRate | number | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ DueDate | string | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ HasErrors | boolean | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ CISDeduction | number | optional |
| └ CreditNoteID | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ …10 more | object | optional |
| └ Prepayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ PrepaymentID | string | optional |
| └ AppliedAmount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ Overpayment | object | optional |
| └ Date | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ BrandingTheme | object | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ …22 more | object | optional |
| └ Payments | array | optional |
| └ Code | string | optional |
| └ Date | string | optional |
| └ Amount | number | optional |
| └ Status | string | optional |
| └ Account | object | optional |
| └ Details | string | optional |
| └ Invoice | object | optional |
| └ Warnings | array | optional |
| └ PaymentID | string | optional |
| └ Reference | string | optional |
| └ BankAmount | number | optional |
| └ CreditNote | object | optional |
| └ HasAccount | boolean | optional |
| └ Prepayment | object | optional |
| └ Overpayment | object | optional |
| └ Particulars | string | optional |
| └ PaymentType | string | optional |
| └ BatchPayment | object | optional |
| └ CurrencyRate | number | optional |
| └ IsReconciled | boolean | optional |
| └ …8 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Allocations | array | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ AppliedAmount | number | optional |
| └ OverpaymentID | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ RemainingCredit | number | optional |
| └ AllocationID | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
| └ StatusAttributeString | string | optional |
Success - return response of type Allocations array of Allocation for all Prepayment
A failed request due to validation error
PUT /Prepayments/{PrepaymentID}/Allocations
/Prepayments/{PrepaymentID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| PrepaymentID | path | optional | string | Unique identifier for a PrePayment |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Expense Claims
PUT /Prepayments/{PrepaymentID}/History
/PurchaseOrders
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
PurchaseOrders with an array of PurchaseOrder object in body of request
application/json
PurchaseOrders
| Property | Type | Required |
|---|---|---|
| PurchaseOrders | array | optional |
| └ Date | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ Telephone | string | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ AttentionTo | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ DeliveryDate | string | optional |
| └ SentToContact | boolean | optional |
| └ TotalDiscount | number | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ …8 more | object | optional |
Success - return response of type PurchaseOrder array for specified PurchaseOrder
A failed request due to validation error
PUT /PurchaseOrders
/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| PurchaseOrderID | path | optional | string | Unique identifier for an Purchase Order |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreatePurchaseOrderAttachmentRequest
Success - return response of type Attachments array of Attachment
A failed request due to validation error
PUT /PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
/PurchaseOrders/{PurchaseOrderID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| PurchaseOrderID | path | optional | string | Unique identifier for an Purchase Order |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /PurchaseOrders/{PurchaseOrderID}/History
/Quotes
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Quotes with an array of Quote object in body of request
application/json
Quotes
| Property | Type | Required |
|---|---|---|
| Quotes | array | optional |
| └ Date | string | optional |
| └ Terms | string | optional |
| └ Title | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ QuoteID | string | optional |
| └ Summary | string | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ DateString | string | optional |
| └ ExpiryDate | string | optional |
| └ QuoteNumber | string | optional |
| └ CurrencyCode | string | optional |
| └ CurrencyRate | number | optional |
| └ TotalDiscount | number | optional |
| └ UpdatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ …4 more | object | optional |
Success - return response of type Quotes with array with newly created Quote
A failed request due to validation error
PUT /Quotes
/Quotes/{QuoteID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| QuoteID | path | optional | string | Unique identifier for an Quote |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreateQuoteAttachmentRequest
Success - return response of type Attachments array of Attachment
A failed request due to validation error
PUT /Quotes/{QuoteID}/Attachments/{FileName}
/Quotes/{QuoteID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| QuoteID | path | optional | string | Unique identifier for an Quote |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /Quotes/{QuoteID}/History
/Receipts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| unitdp | query | optional | integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
Receipts with an array of Receipt object in body of request
application/json
Receipts
| Property | Type | Required |
|---|---|---|
| Receipts | array | optional |
| └ Url | string | optional |
| └ Date | string | optional |
| └ User | object | optional |
| └ UserID | string | optional |
| └ LastName | string | optional |
| └ FirstName | string | optional |
| └ EmailAddress | string | optional |
| └ IsSubscriber | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ OrganisationRole | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ Warnings | array | optional |
| └ Message | string | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ ReceiptID | string | optional |
| └ Reference | string | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ ReceiptNumber | string | optional |
| └ HasAttachments | boolean | optional |
| └ UpdatedDateUTC | string | optional |
| └ LineAmountTypes | string | optional |
| └ ValidationErrors | array | optional |
| └ Message | string | optional |
Success - return response of type Receipts array for newly created Receipt
A failed request due to validation error
PUT /Receipts
/Receipts/{ReceiptID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ReceiptID | path | optional | string | Unique identifier for a Receipt |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreateReceiptAttachmentByFileNameRequest
Success - return response of type Attachments array with newly created Attachment for a specified Receipt
A failed request due to validation error
PUT /Receipts/{ReceiptID}/Attachments/{FileName}
/Receipts/{ReceiptID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| ReceiptID | path | optional | string | Unique identifier for a Receipt |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Receipts
PUT /Receipts/{ReceiptID}/History
/RepeatingInvoices
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| summarizeErrors | query | optional | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
RepeatingInvoices with an array of repeating invoice objects in body of request
application/json
RepeatingInvoices
| Property | Type | Required |
|---|---|---|
| RepeatingInvoices | array | optional |
| └ ID | string | optional |
| └ Type | string | optional |
| └ Total | number | optional |
| └ Status | string | optional |
| └ Contact | object | optional |
| └ Name | string | optional |
| └ Phones | array | optional |
| └ PhoneType | string | optional |
| └ PhoneNumber | string | optional |
| └ PhoneAreaCode | string | optional |
| └ PhoneCountryCode | string | optional |
| └ Website | string | optional |
| └ Balances | object | optional |
| └ AccountsPayable | object | optional |
| └ AccountsReceivable | object | optional |
| └ Discount | number | optional |
| └ LastName | string | optional |
| └ Addresses | array | optional |
| └ City | string | optional |
| └ Region | string | optional |
| └ Country | string | optional |
| └ PostalCode | string | optional |
| └ AddressType | string | optional |
| └ AttentionTo | string | optional |
| └ AddressLine1 | string | optional |
| └ AddressLine2 | string | optional |
| └ AddressLine3 | string | optional |
| └ AddressLine4 | string | optional |
| └ ContactID | string | optional |
| └ FirstName | string | optional |
| └ TaxNumber | string | optional |
| └ IsCustomer | boolean | optional |
| └ IsSupplier | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ EmailAddress | string | optional |
| └ PaymentTerms | object | optional |
| └ Bills | object | optional |
| └ Sales | object | optional |
| └ AccountNumber | string | optional |
| └ BatchPayments | object | optional |
| └ Code | string | optional |
| └ Details | string | optional |
| └ Reference | string | optional |
| └ BankAccountName | string | optional |
| └ BankAccountNumber | string | optional |
| └ BrandingTheme | object | optional |
| └ Name | string | optional |
| └ Type | string | optional |
| └ LogoUrl | string | optional |
| └ SortOrder | integer | optional |
| └ CreatedDateUTC | string | optional |
| └ BrandingThemeID | string | optional |
| └ CompanyNumber | string | optional |
| └ ContactGroups | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ Contacts | array | optional |
| └ ContactGroupID | string | optional |
| └ …22 more | object | optional |
| └ Schedule | object | optional |
| └ Unit | string | optional |
| └ Period | integer | optional |
| └ DueDate | integer | optional |
| └ EndDate | string | optional |
| └ StartDate | string | optional |
| └ DueDateType | string | optional |
| └ NextScheduledDate | string | optional |
| └ SendCopy | boolean | optional |
| └ SubTotal | number | optional |
| └ TotalTax | number | optional |
| └ LineItems | array | optional |
| └ Item | object | optional |
| └ Code | string | optional |
| └ Name | string | optional |
| └ ItemID | string | optional |
| └ TaxType | string | optional |
| └ ItemCode | string | optional |
| └ Quantity | number | optional |
| └ Tracking | array | optional |
| └ Name | string | optional |
| └ Option | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| └ AccountID | string | optional |
| └ TaxAmount | number | optional |
| └ LineAmount | number | optional |
| └ LineItemID | string | optional |
| └ UnitAmount | number | optional |
| └ AccountCode | string | optional |
| └ Description | string | optional |
| └ DiscountRate | number | optional |
| └ DiscountAmount | number | optional |
| └ RepeatingInvoiceID | string | optional |
| └ Reference | string | optional |
| └ IncludePDF | boolean | optional |
| └ MarkAsSent | boolean | optional |
| └ Attachments | array | optional |
| └ Url | string | optional |
| └ FileName | string | optional |
| └ MimeType | string | optional |
| └ AttachmentID | string | optional |
| └ ContentLength | integer | optional |
| └ IncludeOnline | boolean | optional |
| └ CurrencyCode | string | optional |
| └ HasAttachments | boolean | optional |
| └ BrandingThemeID | string | optional |
| └ LineAmountTypes | string | optional |
| └ ApprovedForSending | boolean | optional |
| └ RepeatingInvoiceID | string | optional |
Success - return response of type RepeatingInvoices array with newly created RepeatingInvoice
A failed request due to validation error
PUT /RepeatingInvoices
/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| RepeatingInvoiceID | path | optional | string | Unique identifier for a Repeating Invoice |
| FileName | path | optional | string | Name of the attachment |
Byte array of file in body of request
application/octet-stream
AccountingCreateRepeatingInvoiceAttachmentRequest
Success - return response of type Attachments array with updated Attachment for a specified Repeating Invoice
A failed request due to validation error
PUT /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}
/RepeatingInvoices/{RepeatingInvoiceID}/History
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| RepeatingInvoiceID | path | optional | string | Unique identifier for a Repeating Invoice |
HistoryRecords containing an array of HistoryRecord objects in body of request
application/json
HistoryRecords
| Property | Type | Required |
|---|---|---|
| HistoryRecords | array | optional |
| └ User | string | optional |
| └ Changes | string | optional |
| └ DateUTC | string | optional |
| └ Details | string | optional |
Success - return response of type HistoryRecords array of HistoryRecord objects
A failed request due to validation error
PUT /RepeatingInvoices/{RepeatingInvoiceID}/History
/TaxRates
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
TaxRates array with TaxRate object in body of request
application/json
TaxRates
| Property | Type | Required |
|---|---|---|
| TaxRates | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ TaxType | string | optional |
| └ EffectiveRate | number | optional |
| └ ReportTaxType | string | optional |
| └ TaxComponents | array | optional |
| └ Name | string | optional |
| └ Rate | number | optional |
| └ IsCompound | boolean | optional |
| └ IsNonRecoverable | boolean | optional |
| └ DisplayTaxRate | number | optional |
| └ CanApplyToAssets | boolean | optional |
| └ CanApplyToEquity | boolean | optional |
| └ CanApplyToRevenue | boolean | optional |
| └ CanApplyToExpenses | boolean | optional |
| └ CanApplyToLiabilities | boolean | optional |
Success - return response of type TaxRates array newly created TaxRate
A failed request due to validation error
PUT /TaxRates
/TrackingCategories
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
TrackingCategory object in body of request
application/json
TrackingCategory
| Property | Type | Required |
|---|---|---|
| Name | string | optional |
| Option | string | optional |
| Status | string | optional |
| Options | array | optional |
| └ Name | string | optional |
| └ Status | string | optional |
| └ TrackingOptionID | string | optional |
| └ TrackingCategoryID | string | optional |
| TrackingOptionID | string | optional |
| TrackingCategoryID | string | optional |
Success - return response of type TrackingCategories array of newly created TrackingCategory
A failed request due to validation error
PUT /TrackingCategories
/TrackingCategories/{TrackingCategoryID}/Options
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| xero-tenant-id | header | optional | string | Xero identifier for Tenant |
| Idempotency-Key | header | optional | string | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
| TrackingCategoryID | path | optional | string | Unique identifier for a TrackingCategory |
TrackingOption object in body of request
application/json
TrackingOption
| Property | Type | Required |
|---|---|---|
| Name | string | optional |
| Status | string | optional |
| TrackingOptionID | string | optional |
| TrackingCategoryID | string | optional |
Success - return response of type TrackingOptions array of options for a specified category
A failed request due to validation error
PUT /TrackingCategories/{TrackingCategoryID}/Options
Account
{
"type": "object",
"properties": {
"Code": {
"type": "string",
"example": 4400,
"description": "Customer defined alpha numeric account code e.g 200 or SALES (max length = 10)"
},
"Name": {
"type": "string",
"example": "Food Sales",
"maxLength": 150,
"description": "Name of account (max length = 150)"
},
"Type": {
"$ref": "#/components/schemas/AccountType",
"type": "string"
},
"Class": {
"enum": [
"ASSET",
"EQUITY",
"EXPENSE",
"LIABILITY",
"REVENUE"
],
"type": "string",
"readOnly": true,
"description": "See Account Class Types"
},
"Status": {
"enum": [
"ACTIVE",
"ARCHIVED",
"DELETED"
],
"type": "string",
"description": "Accounts with a status of ACTIVE can be updated to ARCHIVED. See Account Status Codes"
},
"TaxType": {
"type": "string",
"description": "The tax type from taxRates"
},
"AccountID": {
"type": "string",
"format": "uuid",
"example": "00000000-0000-0000-0000-000000000000",
"description": "The Xero identifier for an account – specified as a string following the endpoint name e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9"
},
"Description": {
"type": "string",
"description": "Description of the Account. Valid for all types of accounts except bank accounts (max length = 4000)"
},
"CurrencyCode": {
"$ref": "#/components/schemas/CurrencyCode",
"type": "string"
},
"ReportingCode": {
"type": "string",
"description": "Shown if set"
},
"SystemAccount": {
"enum": [
"DEBTORS",
"CREDITORS",
"BANKCURRENCYGAIN",
"GST",
"GSTONIMPORTS",
"HISTORICAL",
"REALISEDCURRENCYGAIN",
"RETAINEDEARNINGS",
"ROUNDING",
"TRACKINGTRANSFERS",
"UNPAIDEXPCLM",
"UNREALISEDCURRENCYGAIN",
"WAGEPAYABLES",
"CISASSETS",
"CISASSET",
"CISLABOUR",
"CISLABOUREXPENSE",
"CISLABOURINCOME",
"CISLIABILITY",
"CISMATERIALS",
""
],
"type": "string",
"readOnly": true,
"description": "If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null."
},
"AddToWatchlist": {
"type": "boolean",
"description": "Boolean – describes whether the account is shown in the watchlist widget on the dashboard"
},
"HasAttachments": {
"type": "boolean",
"default": "false",
"example": false,
"readOnly": true,
"description": "boolean to indicate if an account has an attachment (read only)"
},
"UpdatedDateUTC": {
"type": "string",
"example": "/Date(1573755038314)/",
"readOnly": true,
"description": "Last modified date UTC format",
"x-is-msdate-time": true
},
"BankAccountType": {
"enum": [
"BANK",
"CREDITCARD",
"PAYPAL",
"NONE",
""
],
"type": "string",
"description": "For bank accounts only. See Bank Account types"
},
"ValidationErrors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"description": "Displays array of validation error messages from the API"
},
"BankAccountNumber": {
"type": "string",
"description": "For bank accounts only (Account Type BANK)"
},
"ReportingCodeName": {
"type": "string",
"readOnly": true,
"description": "Shown if set"
},
"ShowInExpenseClaims": {
"type": "boolean",
"description": "Boolean – describes whether account code is available for use with expense claims"
},
"EnablePaymentsToAccount": {
"type": "boolean",
"description": "Boolean – describes whether account can have payments applied to it"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/accounts/"
}
}
AccountType
{
"enum": [
"BANK",
"CURRENT",
"CURRLIAB",
"DEPRECIATN",
"DIRECTCOSTS",
"EQUITY",
"EXPENSE",
"FIXED",
"INVENTORY",
"LIABILITY",
"NONCURRENT",
"OTHERINCOME",
"OVERHEADS",
"PREPAYMENT",
"REVENUE",
"SALES",
"TERMLIAB",
"PAYG"
],
"type": "string",
"description": "See Account Types"
}
AccountingCreateAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingCreateAttachmentRequest1
{
"type": "string",
"format": "byte"
}
AccountingCreateBankTransactionAttachmentByFilenameRequest
{
"type": "string",
"format": "byte"
}
AccountingCreatePurchaseOrderAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingCreateQuoteAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingCreateReceiptAttachmentByFileNameRequest
{
"type": "string",
"format": "byte"
}
AccountingCreateRepeatingInvoiceAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingCreateSpecificAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingGetAttachment200Response
{
"type": "string",
"format": "binary"
}
AccountingGetAttachmentByFileName200Response
{
"type": "string",
"format": "binary"
}
AccountingGetAttachmentByFileNameResponse
{
"type": "string",
"format": "binary"
}
AccountingGetAttachmentByFilenameResponse
{
"type": "string",
"format": "binary"
}
AccountingGetAttachmentByIdResponse
{
"type": "string",
"format": "binary"
}
AccountingGetAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingGetCreditNoteAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingGetCreditNotePdfResponse
{
"type": "string",
"format": "binary"
}
AccountingGetExpenseClaimsAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingGetInvoicePdfResponse
{
"type": "string",
"format": "binary"
}
AccountingGetPurchaseOrderPdfResponse
{
"type": "string",
"format": "binary"
}
AccountingGetQuoteAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingGetQuotePdfResponse
{
"type": "string",
"format": "binary"
}
AccountingGetRepeatingInvoiceAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingGetSpecificAttachment200Response
{
"type": "string",
"format": "binary"
}
AccountingGetSpecificAttachmentResponse
{
"type": "string",
"format": "binary"
}
AccountingUpdateAttachmentByFilenameRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateAttachmentsByFileNameRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateBankTransactionAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateBankTransferAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateCreditNoteAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdatePurchaseOrderAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateQuoteAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateRepeatingInvoiceAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateSpecificAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUpdateSpecificAttachmentRequest1
{
"type": "string",
"format": "byte"
}
AccountingUploadAttachmentRequest
{
"type": "string",
"format": "byte"
}
AccountingUploadAttachmentRequest1
{
"type": "string",
"format": "byte"
}
AccountingUploadBankTransferAttachmentRequest
{
"type": "string",
"format": "byte"
}
Accounts
{
"type": "object",
"properties": {
"Accounts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Account"
}
}
},
"x-isObjectArray": true
}
AccountsPayable
{
"type": "object",
"properties": {
"Overdue": {
"type": "number",
"format": "double",
"x-is-money": true
},
"Outstanding": {
"type": "number",
"format": "double",
"x-is-money": true
}
}
}
AccountsReceivable
{
"type": "object",
"properties": {
"Overdue": {
"type": "number",
"format": "double",
"x-is-money": true
},
"Outstanding": {
"type": "number",
"format": "double",
"x-is-money": true
}
}
}
Action
{
"properties": {
"Name": {
"type": "string",
"example": "UseMulticurrency",
"description": "Name of the actions for this organisation"
},
"Status": {
"enum": [
"ALLOWED",
"NOT-ALLOWED"
],
"type": "string",
"description": "Status of the action for this organisation"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/organisation/"
}
}
Actions
{
"type": "object",
"properties": {
"Actions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Action"
}
}
},
"x-isObjectArray": true
}
Address
{
"type": "object",
"properties": {
"City": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"Region": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"Country": {
"type": "string",
"maxLength": 50,
"description": "max length = 50, [A-Z], [a-z] only"
},
"PostalCode": {
"type": "string",
"maxLength": 50,
"description": "max length = 50"
},
"AddressType": {
"enum": [
"POBOX",
"STREET"
],
"type": "string",
"description": "define the type of address"
},
"AttentionTo": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"AddressLine1": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine2": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine3": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine4": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/types"
}
}
AddressForOrganisation
{
"type": "object",
"properties": {
"City": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"Region": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"Country": {
"type": "string",
"maxLength": 50,
"description": "max length = 50, [A-Z], [a-z] only"
},
"PostalCode": {
"type": "string",
"maxLength": 50,
"description": "max length = 50"
},
"AddressType": {
"enum": [
"POBOX",
"STREET",
"DELIVERY"
],
"type": "string",
"description": "define the type of address"
},
"AttentionTo": {
"type": "string",
"maxLength": 255,
"description": "max length = 255"
},
"AddressLine1": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine2": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine3": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
},
"AddressLine4": {
"type": "string",
"maxLength": 500,
"description": "max length = 500"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/types"
}
}
Allocation
{
"type": "object",
"required": [
"Amount",
"Invoice",
"Date"
],
"properties": {
"Date": {
"type": "string",
"description": "the date the allocation is applied YYYY-MM-DD.",
"x-is-msdate": true
},
"Amount": {
"type": "number",
"format": "double",
"x-is-money": true,
"description": "the amount being applied to the invoice"
},
"Invoice": {
"$ref": "#/components/schemas/Invoice"
},
"IsDeleted": {
"type": "boolean",
"readOnly": true,
"description": "A flag that returns true when the allocation is succesfully deleted"
},
"CreditNote": {
"$ref": "#/components/schemas/CreditNote"
},
"Prepayment": {
"$ref": "#/components/schemas/Prepayment"
},
"Overpayment": {
"$ref": "#/components/schemas/Overpayment"
},
"AllocationID": {
"type": "string",
"format": "uuid",
"description": "Xero generated unique identifier"
},
"ValidationErrors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"description": "Displays array of validation error messages from the API"
},
"StatusAttributeString": {
"type": "string",
"description": "A string to indicate if a invoice status"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/prepayments/"
}
}
Allocations
{
"type": "object",
"properties": {
"Allocations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Allocation"
}
}
},
"x-isObjectArray": true
}
Attachment
{
"type": "object",
"properties": {
"Url": {
"type": "string",
"example": "https://api.xero.com/api.xro/2.0/Accounts/da962997-a8bd-4dff-9616-01cdc199283f/Attachments/sample5.jpg",
"description": "URL to the file on xero.com"
},
"FileName": {
"type": "string",
"example": "xero-dev.jpg",
"description": "Name of the file"
},
"MimeType": {
"type": "string",
"example": "image/jpg",
"description": "Type of file"
},
"AttachmentID": {
"type": "string",
"format": "uuid",
"example": "00000000-0000-0000-0000-000000000000",
"description": "Unique ID for the file"
},
"ContentLength": {
"type": "integer",
"description": "Length of the file content"
},
"IncludeOnline": {
"type": "boolean",
"description": "Include the file with the online invoice"
}
},
"externalDocs": {
"url": "http://developer.xero.com/documentation/api/attachments/"
}
}
| Version | Endpoints | Schemas | Ingested | Status |
|---|---|---|---|---|
| 3.0.1 | 237 | 171 | 2026-05-11 | current |
| 3.0.1 | 237 | 171 | 2026-04-16 |