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
1 answer

insufficient_scope when trying to access files api in Xero with OAuth2

I make a Get request to https://api.xero.com/files.xro/1.0/Folders. It returns the following response with 'insufficient_scope'. {StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { …
Nilanka d
  • 1
  • 1
0
votes
1 answer

Invalid_grant when using cURL to connect to Xero with OAuth 2.0 and Filemaker

I'm using FileMaker Pro to update a database from using OAuth 1.0a to 2.0 for use with Xero but have run into a problem. I can successfully authorize the app (step 1) and parse the returned code and state. I then need to send the code back to the…
Ryan
  • 1
  • 1
0
votes
0 answers

Xero Oauth 2.0 sdk

Could someone from Xero confirm. What are the paramaters required to make request using sdk in xero accounting? Previously in Oauth 1.0 I used parameter such as client id and client secret and I store them in our database. How different it would…
0
votes
0 answers

How to get authorization code for Xero OAuth2.0

I'm using Xero with c# winforms. Xero released a new topic OAuth2.0 and they are providing sample only for web applications. But I didn't get authorization code. I'm getting an html page as response not the authorization code. Can anyone help me?…
0
votes
1 answer

How to Authenticate Xero API with Integromat

I'm a bit of a newbie to using APIs, and in particular OAuth 2.0. I am trying to use Integromat to pull a financial report from the Xero API, but am stuck on trying to get the connection to work. This is the error I receive after selecting the…
battery514
  • 249
  • 6
  • 21
0
votes
0 answers

Facing Problem in fetching reports using xero api in nodejs

I am facing problem in fetching reports using xero api. I also fetched invoices and accounts but when I fetch reports then I get error as mentioned in catch block. Here is code what I have tried. app.get("/reports", async function(req, res) { …
0
votes
1 answer

Python pull report data from XERO by using OAuth2.0

I would like to pull reporting data from Xero by using Python. This is what I have managed to do currently: def keyGen(): url_key = 'https://identity.xero.com/connect/token' key = '{}'.format(CLIENT_ID + ":" + CLIENT_SECRET) key2 =…
Oksana Ok
  • 515
  • 3
  • 7
  • 19
0
votes
2 answers

Unable to setup webhook in xero?

I am trying to set up a webhook in Xero. I have created an endpoint which Xero hits and send some header and payload. I extract the hash from the header and match with the hash of payload but i never get the same hash. I am using the below code to…
TechChain
  • 8,404
  • 29
  • 103
  • 228
0
votes
1 answer

creating an invoice using OAuth2 in xero

I am following along with the code samples provided here - https://github.com/XeroAPI/xero-php-oauth2/blob/master/docs/Api/AccountingApi.md#createInvoice However, i am always receiving the following error message: "ErrorNumber": 17, "Type":…
djcamo
  • 297
  • 2
  • 3
  • 14
0
votes
1 answer

Can I access Bank Statement lines using the XERO-api?

I'm not an accountant, I know almost nothing about XERO. BUT, I did successfully follow these instructions and now have my Linux box talking to my XERO demo account. Objective: My goal is to autonomously parse bank account activity. I want the…
Norsak
  • 181
  • 1
  • 5
0
votes
0 answers

Xero Api ItemTrackingCategory throws Null Reference Error

I am trying to set the value of TrackingCategory on an invoice Line Item. My code is as follows: LineItem li = new LineItem(); li.LineAmount = inv.LineItems[i].LineAmount; li.ItemCode =…
Rani Radcliff
  • 4,856
  • 5
  • 33
  • 60
0
votes
1 answer

Xero oauth 1.0 convert to 2.0

We are using OAuth1.0 for xero and now we have to change this to 2.0. To do the migration what is the first most step? Is there any code changes to existing application? We are using c# mvc
Shereen
  • 119
  • 1
  • 17
0
votes
1 answer

Why do Xero Private app keeps getting consumer key rejected error

I am trying to connect using a private app but I keep getting the error "oauth_problem=consumer_key_rejected&oauth_problem_advice=Private%20applications%20cannot%20request%20a%20Request%20Token" I cant find the answer, I've been googling for days.…
user11401
  • 89
  • 9
0
votes
1 answer

Can't install Xero oAuth2 using Composer or Manually even when following GitHub instructions to the letter

I don't use Composer extensively so this may be user error! I'm trying to install Xero's oAuth2 package from GitHub at https://github.com/XeroAPI/xero-php-oauth2 As directed in the instructions, I added the following to composer.json: "require": { …
0
votes
1 answer

How can Xero api manage many organisations in one Xero app?

Can I create multiple organizations using API. IF yes, then which Xero API should I use? Thank you very much.
Paul
  • 1
  • 1