Questions tagged [xero-api]

For questions about the API of Xero, the cloud-based accounting application for small and medium businesses.

Official documentation: http://developer.xero.com

628 questions
0
votes
0 answers

.NET C# Tracking Categories on invoice lines Issue (OptionId is empty)

When making an API call using the .NET library for invoices, the tracking categories on the invoice lines have OptionId as en empty GUID. See below. I'm setting the UpdatedDateUTC and it returns one result. .NET Code var query =…
Rob
  • 5,578
  • 3
  • 23
  • 28
0
votes
1 answer

How to turn xero-Node package specific callback into async/await

Trying to figure out how to turn this callback scenario into async / await it's on this page: https://github.com/XeroAPI/xero-node [excerpt] /* Called per page */ const onContacts = (err, response, cb) => { let contacts = response.data; if…
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
0
votes
1 answer

Xero API Layout

Does anyone know if it is possible to output reports (profit and loss) using a layout created in Xero? My client has created a custom layout in Xero itself (available via 'Layout Options' in report page - see screenshot) that groups expenses etc in…
GarethWyn
  • 51
  • 1
  • 6
0
votes
1 answer

Logging API Request/response with Xero API java

We are integrating XERO API's with Xero-java SDK. We have a requirement to intercept requests/responses posted to XERO. Essentially we need to do a audit trail log. How to do this with Xero-SDK java?
Meenakshi Shri
  • 341
  • 2
  • 7
0
votes
0 answers

Is it possible to build a xero uk/GB bank Account without a bank account number of the format xxxxxx-xxxxxxxx?

Is it possible to build a xero uk/GB bank Account without a bank account number of the format xxxxxx-xxxxxxxx? I'm trying to attach a balance in our product to a xero bank account but I don't have a uk style bank number. Is there a way to create a…
0
votes
1 answer

How do I apply a tax to an invoice?

I want to apply a tax (say 14%) to an entire invoice. Applying it on per-lineitem basis would also be okay. Based on Xero's description of a Tax Rates, it looks like I should create a Tax Rate of 14%, and associate the line items with that rate. But…
0
votes
0 answers

Get Access token for multiple organizations

Is there any way I could get an access token for multiple organizations in public or partner applications?
0
votes
1 answer

Xero Oauth Api: Undefined index oauth_session_handle

While integrating xero auth api after first authentication getting Undefined index oauth_session_handle error. Not receiving the oauth_session_handle paramater in response.
ajitpawarink
  • 436
  • 6
  • 14
0
votes
0 answers

Value cannot be null. Parameter name: key (Xero api .NET lib)

I am getting the error "Value cannot be null. Parameter name: key" at the line xapi.Items.Create(item1) , while creating an inventory item using Github Xero c# lib. What could be wrong? Here is the c# code: string xeroAPIUrl =…
Murali
  • 1
0
votes
1 answer

How to upload and download Images in xero?

I have integrated xero in my application, I want to sync employee information from my application to xero & xero to my application. I found 2 apis to do the same. GET…
Gnana
  • 144
  • 7
0
votes
1 answer

Making a data request on the Accounting API using Oauth using HTML

I have set up a private app in Xero and want to make an html request (using my credentials) to get a JSON response. For example, to do a GET response to this url:https://api.xero.com/api.xro/2.0/Accounts. With other APIs I've used, I could test out…
0
votes
1 answer

Update XERO Item after fetching item fails

I am using the xeroizer gem and facing some issues. Here is what I have in my controller: items_found = Item.where(code: codes) if items_found xero.Item.batch_save do binding.pry items_found.each do |existing_item| if…
alexts
  • 180
  • 2
  • 13
0
votes
1 answer

xero-api Initialise Problems

I have attempted to set up xero-node passing in the consumer key and consumer secret along with the app name as the user Agent. However when I do a test call e.g. xeroClient.core.users.getUsers() the code just seems to freeze not giving any errors…
user2243825
  • 265
  • 1
  • 2
  • 6
0
votes
1 answer

XERO - Private app not working

I am trying to create a private app by creating a pem file, however, this is not working. I get an error 'Failed to create app'. Tried using the below ssl commands listed on…
0
votes
1 answer

Create a cheque with Xero API

I am new to developing with Xero. I have a requirement to create and issue a cheque to a party. From this link, it seems that Xero does support the cheque's creation. I could not however find the developer documentation which can enable me to do the…
Samir Joglekar
  • 145
  • 1
  • 4
  • 11