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
1
vote
2 answers

NodeJS can't connect to XERO

I am using xero as my accounting software. I have one requirement that part of my application need to be integrated with xero to perform automation. Using the nodejs sdk seems so easy, but the fact is i cannot connect to xero even using the simplest…
1
vote
1 answer

how to include/get "target contact" in xero "invoices" post/get api calls.

I am new to xero and currently doing POC, by using these services ->GET call Can I get/add target contact to invoice using given service as images which are uploded. I referred API docmentaion. But no luck. Can you please help me out.
gaga
  • 63
  • 1
  • 14
1
vote
1 answer

How to update multiple contacts using xero-node library

I'm using xero-node npm package & looks like it will save me a ton of time. I want to create OR update multiple contacts but not sure how. I'm hoping someone from Xero monitors this tag. var contacts = []; var contact = { "Name": "ABC",…
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
1
vote
1 answer

Xero API invalid OrgId

Working with Xero API Authorization callback returns org, which should correspond Organisation's ShortCode for which Xero user allowed access. In callback org value is BFtWATeLda24OXh2Yv-FLG but Organisation's ShortCode is !hvw0y, which obviously…
tchelidze
  • 8,050
  • 1
  • 29
  • 49
1
vote
1 answer

Xero API - Do Tax Rates have a Primary Key?

I'm trying to pull Tax Rate records from our Xero platform to our external app (so that user can apply the tax rates to invoice line items in the external app). In order to keep those records up to date, I would usually rely on a Xero ID or other…
Talon
  • 73
  • 10
1
vote
2 answers

OAuth2 endpoint post request Xero

First up, I'm not using the Xero api. This is more an OAuth2 questions than Xero specifically I think. Not quite sure if the issue is a general OAuth2 problem or a Xero implementation of OAuth2. I can successfully authenticate, get my tokens etc…
Nick Jones
  • 15
  • 4
1
vote
1 answer

How do you check your Xero API usage?

We've recently developed our own application that interfaces with the Xero API. Right now, we estimate we're making 1000 API calls on a busy day. This is well below the 5000 call limit, but we're expanding usage of the application and need to…
e_i_pi
  • 4,590
  • 4
  • 27
  • 45
1
vote
1 answer

CryptographicException- Invalid provider type specified when accessing Xero API

The code causing this is; //Authorise System.Security.Cryptography.X509Certificates.X509Certificate2 cert = new System.Security.Cryptography.X509Certificates.X509Certificate2(Server.MapPath("cert\\xero.pfx"), "xero"); …
Lee Tickett
  • 5,847
  • 8
  • 31
  • 55
1
vote
0 answers

Not specifying a Status gives the same number of invoices as specifying "PAID"

Context: C#, Xero.Api I'm having an interesting time with Invoices. I have written a bit of C# code to accept a query string and a filename from the command line. I run the query against Xero's endpoint and store the results in the file. So far so…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
1
vote
2 answers

Xero Public Application Integration With C#

I want to integrate xero with c# windows service application. I did not find a simple code snippet to connect xero with c#. I don't want any user interaction while authorising the user with xero. I found the code below but it redirects me to xero…
1
vote
1 answer

Xeroizer::ApiException : QueryParseException: No property or field 'inv_id' exists

I am Trying to get all the invoices in a single API hit. Because, for every user having 100's of invoices. It will exceed the API limit (Minute Limit: 60 calls in a rolling 60 second window). I am trying to store all the invoice id into a single…
1
vote
1 answer

The TaxType code 'MOSS Spain 21%' cannot be used with account code '200'

My UK-based application needs to create invoices using Xero's API. Some customers are in other EU countries, so I have to use a different VAT rate for them. I've added a new Tax Rate called 'MOSS Spain 21%', with the Tax Type as 'MOSS Sales'. When…
Andrew Davey
  • 5,441
  • 3
  • 43
  • 57
1
vote
1 answer

Cannot authenticate with xero-node integration

I'm trying to integrate Xero API into my node app, using the official xero-node library. Following the docs, I registered a public app, supplied consumerKey and consumerSecret to config, tried both the sample app and built my own, but getting the…
Stanley Luo
  • 3,689
  • 5
  • 34
  • 64
1
vote
1 answer

XeroOAuth-PHP - Pagination Example

I'm using the XeroOAuth-PHP SDK and looking to download Invoices for a private application - so far so good in authenticating and downloading the first batch of 100 invoices. I'm now looking to extend the code to include pagination to download…
user982124
  • 4,416
  • 16
  • 65
  • 140
1
vote
1 answer

Registration Endpoint in Xero API

After I explored the API from XERO, I cannot find the Endpoint that is used for registration. Where can I find the registration endpoint in Xero API?
Dika Arta Karunia
  • 476
  • 1
  • 4
  • 17