@datafire/xero v5.0.0
@datafire/xero
Client library for Accounting
Installation and Usage
npm install --save @datafire/xero
let xero = require('@datafire/xero').create({
consumer_key: "",
consumer_secret: "",
token: "",
token_secret: ""
});
.then(data => {
console.log(data);
});
Description
Introduction
The Xero Accounting API is a RESTful web service and uses the OAuth (v1.0a) protocol to authenticate 3rd party applications. The Accounting API exposes accounting and related functions of the main Xero application and can be used for a variety of purposes such as creating transactions like invoices and credit notes, right through to extracting accounting data via our reports endpoint.
Actions
Accounts.get
Retrieve the chart of accounts
xero.Accounts.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- Accounts
array
- items Account
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Accounts
Accounts.post
Create or update accounts
xero.Accounts.post({
"Accounts": {
"Code": "",
"Name": "",
"Type": ""
}
}, context)
Input
- input
object
- Accounts required Account
Output
- output
object
- Accounts
array
- items Account
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Accounts
Accounts.put
Create new accounts
xero.Accounts.put({
"Accounts": {
"Code": "",
"Name": "",
"Type": ""
}
}, context)
Input
- input
object
- Accounts required Account
Output
- output
object
- Accounts
array
- items Account
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Accounts
Accounts.AccountID.delete
Delete an account
xero.Accounts.AccountID.delete({
"AccountID": ""
}, context)
Input
- input
object
- AccountID required
string
- AccountID required
Output
Output schema unknown
Accounts.AccountID.get
Retrieve a single account
xero.Accounts.AccountID.get({
"AccountID": ""
}, context)
Input
- input
object
- AccountID required
string
- AccountID required
Output
- output
object
- Accounts
array
- items Account
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Accounts
Accounts.AccountID.post
Update an account
xero.Accounts.AccountID.post({
"Accounts": {
"Code": "",
"Name": "",
"Type": ""
},
"AccountID": ""
}, context)
Input
- input
object
- Accounts required Account
- AccountID required
string
Output
- output
object
- Accounts
array
- items Account
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Accounts
Accounts.AccountID.Attachments.get
Retrieve Attachments
xero.Accounts.AccountID.Attachments.get({
"AccountID": ""
}, context)
Input
- input
object
- AccountID required
string
: The Xero generated unique identifier for an account - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- AccountID required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
Accounts.AccountID.Attachments.FileName.get
Download an Attachment
xero.Accounts.AccountID.Attachments.FileName.get({
"FileName": "",
"AccountID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - AccountID required
string
: The Xero generated unique identifier for an account - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
Accounts.AccountID.Attachments.FileName.post
Upload an Attachment
xero.Accounts.AccountID.Attachments.FileName.post({
"FileName": "",
"AccountID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - AccountID required
string
: The Xero generated unique identifier for an account - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
BankTransactions.get
Retrieve any spend or receive money transactions (inc. prepayments and overpayments)
xero.BankTransactions.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- If-Modified-Since
Output
- output
object
- BankTransactions
array
- items BankTransaction
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransactions
BankTransactions.post
Create a new spend or receive money (inc. prepayments and overpayments)
xero.BankTransactions.post({
"BankTransactions": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": [],
"BankAccount": {}
}
}, context)
Input
- input
object
- BankTransactions required BankTransaction
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- BankTransactions
array
- items BankTransaction
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransactions
BankTransactions.put
Create a new spend or receive money (inc. prepayments and overpayments)
xero.BankTransactions.put({
"BankTransactions": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": [],
"BankAccount": {}
}
}, context)
Input
- input
object
- BankTransactions required BankTransaction
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- BankTransactions
array
- items BankTransaction
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransactions
BankTransactions.BankTransactionID.get
Retrieve a spend or receive money (inc. prepayments and overpayments)
xero.BankTransactions.BankTransactionID.get({
"BankTransactionID": ""
}, context)
Input
- input
object
- BankTransactionID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- BankTransactionID required
Output
- output
object
- BankTransactions
array
- items BankTransaction
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransactions
BankTransactions.BankTransactionID.post
Update a spend or receive money
xero.BankTransactions.BankTransactionID.post({
"BankTransactions": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": [],
"BankAccount": {}
},
"BankTransactionID": ""
}, context)
Input
- input
object
- BankTransactions required BankTransaction
- BankTransactionID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
Output
- output
object
- BankTransactions
array
- items BankTransaction
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransactions
BankTransactions.BankTransactionID.Attachments.get
Retrieve Attachments
xero.BankTransactions.BankTransactionID.Attachments.get({
"BankTransactionID": ""
}, context)
Input
- input
object
- BankTransactionID required
string
: The Xero generated unique identifier for an bank transaction - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- BankTransactionID required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
BankTransactions.BankTransactionID.Attachments.FileName.get
Download an Attachment
xero.BankTransactions.BankTransactionID.Attachments.FileName.get({
"FileName": "",
"BankTransactionID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - BankTransactionID required
string
: The Xero generated unique identifier for an bank transaction - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
BankTransactions.BankTransactionID.Attachments.FileName.post
Upload an Attachment
xero.BankTransactions.BankTransactionID.Attachments.FileName.post({
"FileName": "",
"BankTransactionID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - BankTransactionID required
string
: The Xero generated unique identifier for an bank transaction - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
BankTransfers.get
Retrieve a colection of bank transfers
xero.BankTransfers.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- BankTransfers
array
- items BankTransfer
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransfers
BankTransfers.put
Create a bank transfer
xero.BankTransfers.put({
"BankTransfers": {
"FromBankAccount": {},
"ToBankAccount": {},
"Amount": 0
}
}, context)
Input
- input
object
- BankTransfers required BankTransfer
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- BankTransfers
array
- items BankTransfer
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransfers
BankTransfers.BankTransferID.get
Retrieve an individual bank transfer
xero.BankTransfers.BankTransferID.get({
"BankTransferID": ""
}, context)
Input
- input
object
- BankTransferID required
string
- BankTransferID required
Output
- output
object
- BankTransfers
array
- items BankTransfer
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BankTransfers
BankTransfers.BankTransferID.Attachments.FileName.get
Download an Attachment
xero.BankTransfers.BankTransferID.Attachments.FileName.get({
"FileName": "",
"BankTransferID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - BankTransferID required
string
: The Xero generated unique identifier for an BankTransfer - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
BankTransfers.BankTransferID.Attachments.FileName.post
Upload an Attachment
xero.BankTransfers.BankTransferID.Attachments.FileName.post({
"FileName": "",
"BankTransferID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - BankTransferID required
string
: The Xero generated unique identifier for a BankTransfer - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
BrandingThemes.get
Retrieve a collection of BrandingThemes
xero.BrandingThemes.get(null, context)
Input
This action has no parameters
Output
- output
object
- BrandingThemes
array
- items BrandingTheme
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BrandingThemes
BrandingThemes.BrandingThemeID.get
Retrieve an individual BrandingTheme
xero.BrandingThemes.BrandingThemeID.get({
"BrandingThemeID": ""
}, context)
Input
- input
object
- BrandingThemeID required
string
- BrandingThemeID required
Output
- output
object
- BrandingThemes
array
- items BrandingTheme
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- BrandingThemes
ContactGroups.get
Retrieve a collection of contact groups
xero.ContactGroups.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.post
Create or update a contact group
xero.ContactGroups.post({
"ContactGroups": {
"Name": ""
}
}, context)
Input
- input
object
- ContactGroups required ContactGroup
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.put
Create a new contact group
xero.ContactGroups.put({
"ContactGroups": {
"Name": ""
}
}, context)
Input
- input
object
- ContactGroups required ContactGroup
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.ContactGroupID.delete
Delete a contact group
xero.ContactGroups.ContactGroupID.delete({
"ContactGroupID": ""
}, context)
Input
- input
object
- ContactGroupID required
string
- ContactGroupID required
Output
Output schema unknown
ContactGroups.ContactGroupID.get
Retrieve the ContactID and Name of all the contacts in a contact group
xero.ContactGroups.ContactGroupID.get({
"ContactGroupID": ""
}, context)
Input
- input
object
- ContactGroupID required
string
- ContactGroupID required
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.ContactGroupID.post
Update a contact group
xero.ContactGroups.ContactGroupID.post({
"ContactGroups": {
"Name": ""
},
"ContactGroupID": ""
}, context)
Input
- input
object
- ContactGroups required ContactGroup
- ContactGroupID required
string
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.ContactGroupID.Contacts.delete
Remove all contacts from a contact group
xero.ContactGroups.ContactGroupID.Contacts.delete({
"ContactGroupID": ""
}, context)
Input
- input
object
- ContactGroupID required
string
- ContactGroupID required
Output
Output schema unknown
ContactGroups.ContactGroupID.Contacts.put
Add contacts to a contact group
xero.ContactGroups.ContactGroupID.Contacts.put({
"Contacts": {
"Name": ""
},
"ContactGroupID": ""
}, context)
Input
- input
object
- Contacts required Contact
- ContactGroupID required
string
Output
- output
object
- ContactGroups
array
- items ContactGroup
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- ContactGroups
ContactGroups.ContactGroupID.Contacts.ContactID.delete
Remove a contact from a contact group
xero.ContactGroups.ContactGroupID.Contacts.ContactID.delete({
"ContactGroupID": "",
"ContactID": ""
}, context)
Input
- input
object
- ContactGroupID required
string
- ContactID required
string
- ContactGroupID required
Output
Output schema unknown
Contacts.get
Retrieve a collection of contacts
xero.Contacts.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - includeArchived
boolean
: Include archived records in the response - IDs
string
: Filter by a comma-separated list of ContactIDs
- If-Modified-Since
Output
- output
object
- Contacts
array
- items Contact
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Contacts
Contacts.post
Create or update a contact
xero.Contacts.post({
"Contacts": {
"Name": ""
}
}, context)
Input
- input
object
- Contacts required Contact
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- Contacts
array
- items Contact
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Contacts
Contacts.put
Create a contact
xero.Contacts.put({
"Contacts": {
"Name": ""
}
}, context)
Input
- input
object
- Contacts required Contact
Output
- output
object
- Contacts
array
- items Contact
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Contacts
Contacts.ContactID.get
Retrieve an individual contact
xero.Contacts.ContactID.get({
"ContactID": ""
}, context)
Input
- input
object
- ContactID required
string
- ContactID required
Output
- output
object
- Contacts
array
- items Contact
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Contacts
Contacts.ContactID.post
Update a contact
xero.Contacts.ContactID.post({
"Contacts": {
"Name": ""
},
"ContactID": ""
}, context)
Input
- input
object
- Contacts required Contact
- ContactID required
string
Output
- output
object
- Contacts
array
- items Contact
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Contacts
Contacts.ContactID.Attachments.get
Retrieve Attachments
xero.Contacts.ContactID.Attachments.get({
"ContactID": ""
}, context)
Input
- input
object
- ContactID required
string
: The Xero generated unique identifier for a Contact - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- ContactID required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
Contacts.ContactID.Attachments.FileName.get
Download an Attachment
xero.Contacts.ContactID.Attachments.FileName.get({
"FileName": "",
"ContactID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - ContactID required
string
: The Xero generated unique identifier for a Contact - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
Contacts.ContactID.Attachments.FileName.post
Upload an Attachment
xero.Contacts.ContactID.Attachments.FileName.post({
"FileName": "",
"ContactID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - ContactID required
string
: The Xero generated unique identifier for a Contact - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
CreditNotes.get
Retrieve a collection of credit notes
xero.CreditNotes.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - page
integer
: Page number e.g. page=1. Page size is 100. When using the page parameter full resource details will be returned (including line items).
- If-Modified-Since
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.post
Create or update a credit note
xero.CreditNotes.post({
"CreditNotes": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
}
}, context)
Input
- input
object
- CreditNotes required CreditNote
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.put
Create a credit note
xero.CreditNotes.put({
"CreditNotes": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
}
}, context)
Input
- input
object
- CreditNotes required CreditNote
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.CreditNoteID.get
Retrieve an individual credit note
xero.CreditNotes.CreditNoteID.get({
"CreditNoteID": ""
}, context)
Input
- input
object
- CreditNoteID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- CreditNoteID required
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.CreditNoteID.post
Update a credit note
xero.CreditNotes.CreditNoteID.post({
"CreditNotes": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
},
"CreditNoteID": ""
}, context)
Input
- input
object
- CreditNotes required CreditNote
- CreditNoteID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.CreditNoteID.Allocations.put
Allocate a credit note
xero.CreditNotes.CreditNoteID.Allocations.put({
"Allocations": {
"Invoice": {},
"AppliedAmount": 0,
"Date": ""
},
"CreditNoteID": ""
}, context)
Input
- input
object
- Allocations required Allocation
- CreditNoteID required
string
Output
- output
object
- CreditNotes
array
- items CreditNote
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- CreditNotes
CreditNotes.CreditNoteID.Attachments.get
Retrieve Attachments
xero.CreditNotes.CreditNoteID.Attachments.get({
"CreditNoteID": ""
}, context)
Input
- input
object
- CreditNoteID required
string
: The Xero generated unique identifier for a CreditNote - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- CreditNoteID required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
CreditNotes.CreditNoteID.Attachments.FileName.get
Download an Attachment
xero.CreditNotes.CreditNoteID.Attachments.FileName.get({
"FileName": "",
"CreditNoteID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - CreditNoteID required
string
: The Xero generated unique identifier for a CreditNote - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
CreditNotes.CreditNoteID.Attachments.FileName.post
Upload an Attachment
xero.CreditNotes.CreditNoteID.Attachments.FileName.post({
"FileName": "",
"CreditNoteID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - CreditNoteID required
string
: The Xero generated unique identifier for a CreditNote - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
Currencies.get
Retrieve the currencies the organisation is subscribed to
xero.Currencies.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- Currencies
array
- items Currency
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Currencies
Currencies.put
Add currencies to the organisation
xero.Currencies.put({
"Currencies": {}
}, context)
Input
- input
object
- Currencies required Currency
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- Currencies
array
- items Currency
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Currencies
Employees.get
Retrieve a collection of employees
xero.Employees.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - Employees
array
- items Employee
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Employees.post
Create or update employees
xero.Employees.post({
"Employees": {
"FirstName": "",
"LastName": ""
}
}, context)
Input
- input
object
- Employees required Employee
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - Employees
array
- items Employee
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Employees.put
Create employees
xero.Employees.put({
"Employees": {
"FirstName": "",
"LastName": ""
}
}, context)
Input
- input
object
- Employees required Employee
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - Employees
array
- items Employee
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Employees.EmployeeID.get
Retrieve an individual employee
xero.Employees.EmployeeID.get({
"EmployeeID": ""
}, context)
Input
- input
object
- EmployeeID required
string
- EmployeeID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - Employees
array
- items Employee
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Employees.EmployeeID.post
Update an employee
xero.Employees.EmployeeID.post({
"Employees": {
"FirstName": "",
"LastName": ""
},
"EmployeeID": ""
}, context)
Input
- input
object
- Employees required Employee
- EmployeeID required
string
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - Employees
array
- items Employee
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ExpenseClaims.get
Retrieve a collection of expense claims
xero.ExpenseClaims.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ExpenseClaims
array
- items ExpenseClaim
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ExpenseClaims.post
Create or update an expense claim
xero.ExpenseClaims.post({
"ExpenseClaims": {
"User": {},
"Receipts": []
}
}, context)
Input
- input
object
- ExpenseClaims required ExpenseClaim
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ExpenseClaims
array
- items ExpenseClaim
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ExpenseClaims.put
Create an expense claim
xero.ExpenseClaims.put({
"ExpenseClaims": {
"User": {},
"Receipts": []
}
}, context)
Input
- input
object
- ExpenseClaims required ExpenseClaim
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ExpenseClaims
array
- items ExpenseClaim
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ExpenseClaims.ExpenseClaimID.get
Retrieve an individual expense claim
xero.ExpenseClaims.ExpenseClaimID.get({
"ExpenseClaimID": ""
}, context)
Input
- input
object
- ExpenseClaimID required
string
- ExpenseClaimID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ExpenseClaims
array
- items ExpenseClaim
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ExpenseClaims.ExpenseClaimID.post
Update an expense claim
xero.ExpenseClaims.ExpenseClaimID.post({
"ExpenseClaims": {
"User": {},
"Receipts": []
},
"ExpenseClaimID": ""
}, context)
Input
- input
object
- ExpenseClaims required ExpenseClaim
- ExpenseClaimID required
string
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ExpenseClaims
array
- items ExpenseClaim
- ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.get
Retrieve a collection of invoices (sales invoices and bills)
xero.Invoices.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - IDs
string
: Filter by a comma-separated list of InvoiceIDs - ContactIDs
string
: Filter by a comma-separated list of ContactIDs - Statuses
string
: Filter by a comma-separated list of Statuses - InvoiceNumbers
string
: Filter by a comma-separated list of InvoiceNumbers
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Invoices
array
- items Invoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.post
Create or update an Invoice (sales invoices or bills)
xero.Invoices.post({
"Invoices": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
}
}, context)
Input
- input
object
- Invoices required Invoice
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Invoices
array
- items Invoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.put
Create an Invoice (sales invoices or bills)
xero.Invoices.put({
"Invoices": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
}
}, context)
Input
- input
object
- Invoices required Invoice
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Invoices
array
- items Invoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.InvoiceID.get
Retrieve an Invoice (sales invoice or bill)
xero.Invoices.InvoiceID.get({
"InvoiceID": ""
}, context)
Input
- input
object
- InvoiceID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- InvoiceID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Invoices
array
- items Invoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.InvoiceID.post
Update an Invoice (sales invoice or bill)
xero.Invoices.InvoiceID.post({
"Invoices": {
"Type": "",
"Contact": {
"Name": ""
},
"LineItems": []
},
"InvoiceID": ""
}, context)
Input
- input
object
- Invoices required Invoice
- InvoiceID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Invoices
array
- items Invoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Invoices.InvoiceID.Attachments.get
Retrieve Attachments
xero.Invoices.InvoiceID.Attachments.get({
"InvoiceID": ""
}, context)
Input
- input
object
- InvoiceID required
string
: The Xero generated unique identifier for an Invoice - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- InvoiceID required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
Invoices.InvoiceID.Attachments.FileName.get
Download an Attachment
xero.Invoices.InvoiceID.Attachments.FileName.get({
"FileName": "",
"InvoiceID": ""
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment to be downloaded - InvoiceID required
string
: The Xero generated unique identifier for an Invoice - If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00
- FileName required
Output
Output schema unknown
Invoices.InvoiceID.Attachments.FileName.post
Upload an Attachment
xero.Invoices.InvoiceID.Attachments.FileName.post({
"FileName": "",
"InvoiceID": "",
"Content": {
"Content": ""
}
}, context)
Input
- input
object
- FileName required
string
: The filename of the attachment being uploaded - InvoiceID required
string
: The Xero generated unique identifier for an Invoice - Content required Content
- FileName required
Output
- output
object
- Attachments
array
- items Attachment
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- Attachments
Invoices.InvoiceID.OnlineInvoice.get
Retrieve the URL to view the online invoice
xero.Invoices.InvoiceID.OnlineInvoice.get({
"InvoiceID": ""
}, context)
Input
- input
object
- InvoiceID required
string
- InvoiceID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - OnlineInvoices
array
- items OnlineInvoice
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Items.get
Retrieve a collection of items
xero.Items.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Items
array
- items Item
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Items.post
Create or update an item
xero.Items.post({
"Items": {
"Code": ""
}
}, context)
Input
- input
object
- Items required Item
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Items
array
- items Item
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Items.put
Create an item
xero.Items.put({
"Items": {
"Code": ""
}
}, context)
Input
- input
object
- Items required Item
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter. - summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Items
array
- items Item
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Items.ItemID.delete
Delete an item
xero.Items.ItemID.delete({
"ItemID": ""
}, context)
Input
- input
object
- ItemID required
string
- ItemID required
Output
Output schema unknown
Items.ItemID.get
Retrieve an item
xero.Items.ItemID.get({
"ItemID": ""
}, context)
Input
- input
object
- ItemID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
- ItemID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Items
array
- items Item
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Items.ItemID.post
Update an item
xero.Items.ItemID.post({
"Items": {
"Code": ""
},
"ItemID": ""
}, context)
Input
- input
object
- Items required Item
- ItemID required
string
- unitdp
integer
: Determines the decimal places accepted/returned on the UnitAmount. UnitAmount is 2 decimal places by default but can be increased to 4 decimal places by supplying the unitdp=4 parameter.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Items
array
- items Item
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Journals.get
Retrieve a collection of journals.
xero.Journals.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - paymentsOnly
boolean
: Return results on a the cash basis - offset
integer
: Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned.
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Journals
array
- items Journal
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
Journals.JournalID.get
Retrieve an individual journal.
xero.Journals.JournalID.get({
"JournalID": ""
}, context)
Input
- input
object
- JournalID required
string
- JournalID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - Journals
array
- items Journal
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
LinkedTransactions.get
Retrieve a collection of linked transactions (billable expenses)
xero.LinkedTransactions.get({}, context)
Input
- input
object
- page
integer
: Page number e.g. page=1. Page size is 100. When using the page parameter full resource details will be returned (including line items). - SourceTransactionID
string
: Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice - ContactID
string
: Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer. - Status
string
: Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED. - TargetTransactionID
string
: Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice.
- page
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - LinkedTransactions
array
- items LinkedTransaction
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
LinkedTransactions.post
Create or update a linked transaction (billable expense)
xero.LinkedTransactions.post({
"LinkedTransactions": {}
}, context)
Input
- input
object
- LinkedTransactions required LinkedTransaction
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - LinkedTransactions
array
- items LinkedTransaction
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
LinkedTransactions.put
Create a linked transaction (billable expense)
xero.LinkedTransactions.put({
"LinkedTransactions": {}
}, context)
Input
- input
object
- LinkedTransactions required LinkedTransaction
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - LinkedTransactions
array
- items LinkedTransaction
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
LinkedTransactions.LinkedTransactionID.delete
Delete a linked transaction (billable expense)
xero.LinkedTransactions.LinkedTransactionID.delete({
"LinkedTransactionID": ""
}, context)
Input
- input
object
- LinkedTransactionID required
string
- LinkedTransactionID required
Output
Output schema unknown
LinkedTransactions.LinkedTransactionID.get
Retrieve a linked transaction (billable expense)
xero.LinkedTransactions.LinkedTransactionID.get({
"LinkedTransactionID": ""
}, context)
Input
- input
object
- LinkedTransactionID required
string
- LinkedTransactionID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - LinkedTransactions
array
- items LinkedTransaction
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
LinkedTransactions.LinkedTransactionID.post
Update a linked transaction (billable expense)
xero.LinkedTransactions.LinkedTransactionID.post({
"LinkedTransactions": {},
"LinkedTransactionID": ""
}, context)
Input
- input
object
- LinkedTransactions required LinkedTransaction
- LinkedTransactionID required
string
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - LinkedTransactions
array
- items LinkedTransaction
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ManualJournals.get
Retrieve a collection of manual journals
xero.ManualJournals.get({}, context)
Input
- input
object
- If-Modified-Since
string
: A UTC timestamp (yyyy-mm-ddThh:mm:ss) . Only invoices created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00 - where
string
: Filter by an any element - order
string
: Order by any element returned - page
integer
: Page number e.g. page=1. Page size is 100. When using the page parameter full resource details will be returned (including line items).
- If-Modified-Since
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ManualJournals
array
- items ManualJournal
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ManualJournals.post
Create or update a manual journal
xero.ManualJournals.post({
"ManualJournals": {
"Narration": "",
"JournalLines": []
}
}, context)
Input
- input
object
- ManualJournals required ManualJournal
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ManualJournals
array
- items ManualJournal
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ManualJournals.put
Create a manual journal
xero.ManualJournals.put({
"ManualJournals": {
"Narration": "",
"JournalLines": []
}
}, context)
Input
- input
object
- ManualJournals required ManualJournal
- summarizeErrors
boolean
: If you plan to submit more than one entity per API call, we recommend that you append the summarizeErrors=false querystring to your API call. This ensures that every entity is returned back to you, each having their own status attribute.
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ManualJournals
array
- items ManualJournal
- ProviderName
string
: Name of the application that made the request - Status
string
: OK for a successful response
- DateTimeUTC
ManualJournals.ManualJournalID.get
Retrieve an individual manual journal
xero.ManualJournals.ManualJournalID.get({
"ManualJournalID": ""
}, context)
Input
- input
object
- ManualJournalID required
string
- ManualJournalID required
Output
- output
object
- DateTimeUTC
string
: DateTime of the request - ID
string
: Unique identifier for each response - ManualJournals
array
- items ManualJournal
- ProviderName
string
: Name of the application that made the request - Status `str
- DateTimeUTC