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

How to Validate a Xero webhook payload with HMACSHA256 Node js

I need to validate Xero webhook in my node js project. This is Xero documentation steps to validate: https://developer.xero.com/documentation/webhooks/creating-webhooks#STATUS var crypto = require("crypto") function getHmacSha256(message, secret) { …
Hiral
  • 132
  • 1
  • 12
2
votes
1 answer

XERO Delete connection with connection id

I want to allow deleting specific tenant from my api but every time I make DELETE request to https://api.xero.com/connections/{connectionId} with my access token I get "AuthenticationUnsuccessful". Furthemore, when I change DELETE to GET I recieve…
huligan17
  • 23
  • 1
  • 2
2
votes
2 answers

Parsing a RS256 JWT from Xero using JJWT

I'm trying to parse a JWT from Xero for SSO. Xero documentation states "The JWT is a JSON payload signed with your client secret and the RS256 signing algorithm". I can get the JWT from Xero. I know my "client secret" (string). How do put it…
Bernie
  • 31
  • 1
2
votes
1 answer

OAuth2 integration with Xero using Xojo and Chilkat

The old Chilkat forum appears to have moved here. For years I've had Chilkat's OAuth1 working fine for integration with Xero (from Xojo). Now Xero are replacing OAuth1 with OAuth2. Xero say that once you successfully connect with 3-legged OAuth2,…
2
votes
2 answers

"git@github.com: Permission denied (publickey)" when installing the dependencies from xero-python-oauth2-starter-master

I am trying to use xero-python-oauth2-starter-master but I cant get past the first step! I am on Windows and i have installed python 3.8, Visual Studio Code (I also tried this with the Anaconda suit) and latest Git. When i try to run the…
Mike
  • 67
  • 6
2
votes
0 answers

Xero-Api PHP Authentication Unsuccessful when refreshing token

I am having issues with refreshing tokens with the xero api. When I first create the token, everything is fine. When I refresh the token, I get authentication…
Danny Younes
  • 579
  • 1
  • 6
  • 19
2
votes
1 answer

Xero Workflow and payment accounts when creating paid invoices via API?

I'm trying to work out the correct method of attributing payments on invoices that are automatically created after a user purchases something on site, payment handled by Stripe (or other payment gateway). Here is the current flow from user action to…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
2
votes
1 answer

How you organize the interaction between Angular app and Xero OAuth2.0?

I am building Angular app that should interact with Xero API. Xero doesn't provide any SDK for Typescript (https://developer.xero.com/documentation/libraries/overview), but Node JS SDK seems to be the most useful lib for my task. But I am in stuck…
Artsiom
  • 197
  • 1
  • 9
2
votes
1 answer

How do I authorise a cron job php file to access Xero?

I am migrating to Xero and want to set an invoicing process to run once a month at a specific time using a cron job, I can get the cron job to fire and I have set up a php page based on https://github.com/XeroAPI/xero-php-oauth2-app which I can run…
ruraldev
  • 187
  • 2
  • 13
2
votes
1 answer

Xero Contact Credit Limits in API

Xero has finally released a "Credit Limit" facility for Customer accounts. We are using the https://api.xero.com/api.xro/2.0/Contacts endpoint to receive Customer balances. But, there is no sign yet of the "Credit Limit" being added to this. If it…
2
votes
1 answer

PhpStorm isn't doing code completion with large file

I've just installed this library. PhpStorm does its usual code completion, except for the \XeroAPI\XeroPHP\Api\AccountingApi class. The \XeroAPI\XeroPHP\Api\IdentityApi class in the same folder works just fine. The file is quite big - 2,560KB. If I…
SpoonNZ
  • 3,780
  • 1
  • 20
  • 25
2
votes
1 answer

Xero SDK - OAuth implementation of state parameter

I have currently implemented a NodeJs, express api with the xero-node sdk package, and I've run into an issue where it doesn't seem that the OAuth state parameter is not being used (though I see it is defined as an optional parameter for the…
Nathan
  • 90
  • 7
2
votes
0 answers

Missing Parameter from constructor in your C# Example code

I am attempting to update our C# integration oAuth2 as per Xero documentation. I am attempting to use the sample code provided here: https://github.com/XeroAPI/Xero-NetStandard/tree/oauth2/Xero.NetStandard.OAuth2Client However, this sample code has…
2
votes
2 answers

Is it possible to access the Xero API without user interaction

I am trying to come up with something which will be scheduled to run daily and would import newly created invoices from a database into Xero. To have this run daily, I want to avoid logging in manually i.e entering username and password for logging…
2
votes
1 answer

Integration Xero in ReactJS application causes errors

I am working on a Xero integration and am having some issues setting up the XeroClient from the SDK. We are currently working in a React app written with Typescript. Currently I am importing Xero SDK like this: import { XeroClient } from…
Nathan
  • 90
  • 7
1 2
3
41 42