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

Getting "unsupported_grant_type" when trying to refresh xero API token

I don't understand how to use offline_access. Could you send me for example how do it? And where can I get a new Refresh token? I added offline_access For all my users. And how can I use this? For generate a new refresh token. I have this…
Banyman
  • 13
  • 3
0
votes
0 answers

Xero: Unable to exchanging the code for the access token once a user has authorised my app

I really been struggling with exchanging the code received from Xero after a user from another Xero organisation has authorised my app. Whatever I tried I consistently receive a 400 - Bad Request, For obvious security reasons "Bad Request" is all…
Jon Little
  • 13
  • 4
0
votes
1 answer

Django OAuth with Xero SDK can't access session for oauth2_token_getter and oauth2_token_saver as no request object can be passed

I am using Django with requests_oauthlib to access the Xero API using the xero-python SDK. Xero Starter Demo requests-oauthlib I am trying to use request.session to store the oauth token information. This works well on the initial call and callback,…
Levitybot
  • 481
  • 5
  • 8
0
votes
2 answers

Xero Contacts API - Invalid Json issue

I am getting this error when trying to call Post Contacts endpoint: {\r\n "ErrorNumber": 14,\r\n "Type": "PostDataInvalidException",\r\n "Message": "Invalid Json data"\r\n} This is my JSON: { "Contacts": [ { "Name": "Delia Du Toit", …
zdb
  • 65
  • 1
  • 1
  • 10
0
votes
1 answer

xero sdk getInvoices returns empty contact

I am using the xero-node SDK. I use the getInvoices entry point, and everything works fine meaning that the Invoice data is correct. The Contact JSON object is also returned with the Invoice data (which surprised me) which contains the Contact…
ImTalkingCode
  • 353
  • 1
  • 3
  • 14
0
votes
0 answers

XERO API - Budget Variance Summary

Has anyone successfully got a budget veriance working from XERO API? It doesn't provide it as an end point and I've been tryingt to come up with soltions to self generate it. But I'm finding bottle necks everywhere I turn. I was thinking we could…
tonypartridge
  • 292
  • 1
  • 9
0
votes
1 answer

Can not create contact in xero-node

I use xero-node. I am trying to create contact this way: const create_contact: Contact = { accountNumber: '******', name: '*******', brandingTheme: { brandingThemeID:…
KillReal
  • 1
  • 2
0
votes
0 answers

Xero API - How to retrieve Payments which are awaiting approval?

The API allows me to search for Payments endpoint below with Status="AUTHORISED" but how can I search for payments which are awaiting approval? https://api.xero.com/api.xro/2.0/Payments
ImTalkingCode
  • 353
  • 1
  • 3
  • 14
0
votes
1 answer

Xero API connection - Redirect URI parameters

When authorising a xero API connection, is there a way to pass parameters to the redirect URI so they are passed back so that i can identify the client or other information in the redirect…
Anthony
  • 73
  • 10
0
votes
3 answers

Creating employee in Xero PHP SDK

I have copied the sample code from the Xero developers site but keep getting an error with the DateOfBirth here is the code
DeanO
  • 93
  • 1
  • 10
0
votes
1 answer

I can't start xero oauth session in wordress plugin

I am trying to connect users xero accounts with my app and I have that problem Warning: session_start(): Cannot start session when headers already sent in /storage.php on line 11 my storage.php is like :
0
votes
0 answers

Getting Started with Xero-Python SDK…nightmare

I’m a newbie to using SDKs, using Jupiter Notebooks to play around. I have pip installed xero-python per Xero’s github page below: https://github.com/XeroAPI/xero-python I saved the repository to my hard drive and opened a Jupiter Notebook within…
0
votes
1 answer

POST multiple spend/receive money transactions using JSON?

I'm trying to post several bank transactions to Xero using the BankTransactions endpoint, I've been using the api-explorer to test my json code but can't seem to get this to work. I don't know whether this is possible, or if my json isn't written…
J S
  • 1
0
votes
0 answers

xero api failing to add tracking on purchase order

When I add tracking to invoices or credit notes via the api it works fine. but when i try to add it on purchase order it fails and I cannot seem to get a clear error message out of it. I am using accounting api…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

Xero API seems to return two different UUID's for the same user

We're using OAuth2 to allow users of our system to connect to Xero. Once the authorization succeeds, Xero provides an access token with information about the user who made the connection, including a xero_userid. However, using this ID to find the…
Ben Hull
  • 7,524
  • 3
  • 36
  • 56