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

XERO PHP SDK - Createinvoiceattachment throws 401 Unauthorized error

I am trying to attach a document to an invoice. It throws the error. The tenant id, invoice id are correct. Exception when calling AccountingApi->createInvoiceAttachmentByFileName: [401] Client error: PUT…
arun kumar
  • 703
  • 2
  • 13
  • 33
1
vote
1 answer

Getting 401 Unauthorized Xero oAuth 2.0 -

I am trying to create a new contact using Xero oAuth 2.0 and getting this error: [401] Client error: `PUT https://api.xero.com/api.xro/2.0/Contacts?summarizeErrors=true` resulted in a `401 Unauthorized` response: I have got my scopes as: 'scopes' …
Kunal Parekh
  • 380
  • 6
  • 24
1
vote
2 answers

firebase functions integration with xero-node

Attempting to create a firebase function that is triggered by some database or onRequest event that creates payments on Xero to better manage incoming invoices. Not sure I understand how to run (if its possible) the xero-node library from firebase…
1
vote
2 answers

XERO api remove tenant connections after login

We use XERO to authenticate and sign in to our app on firebase, however, we dont want a user to connect with multiple organisations, we just want a user to sign in and choose a single organisation. If we remove all tenant connections from our app…
Janpan
  • 2,164
  • 3
  • 27
  • 53
1
vote
2 answers

Xero error: 403 forbidden when POST'ing an Invoice

I'm setting up API calls to test retrieving and creating Invoices to and from Xero. I've set up the oAuth2 and I can retrieve from the Demo Co with no errors. However, when trying a POST with the same credentials and authentication, I get: { …
1
vote
1 answer

Xero API: Issues with pulling unrealized gain and loss over webservice

We are currently having a difference when loading data via Webservice / Rest from Xero to our own software:LucaNet and it is specifically from unrealized / realized gain and losses from Foreign currency. The reason being is that those values are…
1
vote
1 answer

Oauth2.0 Expose which user connected the organization via OAuth

I need to know which user is connected with the organization via OAuth2.0 .I noticed in the xero developer site it contains some information but not clear enough. Is there anyone who is having python code written for this. Reason : Currently I am…
suresh_chinthy
  • 377
  • 2
  • 12
1
vote
2 answers

PHP to exchange verification code for access token in XERO

I'm struggling a bit to exchange my verification code for an access token in XERO. It should be a straightforward operation so I'm trying to avoid the overhead of using libraries. Here's the code so far (Assume any variables have already been…
Grissom
  • 31
  • 2
1
vote
1 answer

Xero Authentication in WordPress

I have a client that wants to be able to create xero invoices from a custom backend plugin that I have created in WordPress. I understand the xero api docs and what data to pass to the api to create a new invoice but I have to somehow authenticate…
Reece
  • 2,581
  • 10
  • 42
  • 90
1
vote
0 answers

Custom Connection Xero API in Power Automate

I have been trying to connect to Xero through a custom connector on Power Automate but I always get either: Operation failed (403), or when I include the Tenant ID in the header I get Request failed. Please try again in a few minutes. Has anyone…
1
vote
1 answer

How do I get a count of connections to my Xero App?

Xero limits uncertified apps to connect to only 25 organisations. Where can I access Xero's count of how many connections I have? I haven't been able to find an API call to do this.
Andrew
  • 125
  • 1
  • 1
  • 6
1
vote
2 answers

Xero oauth2 token refresh in distributed ruby environment

We have a ruby rails front end and distributed back end services running batch jobs via Redis. The front end will acquire the initial Xero oauth2 token. The token will expire in 30 minutes, the refresh token lasts 60 days (great), but can only be…
Robert Sutton
  • 507
  • 4
  • 7
1
vote
1 answer

Xero - OAuth1 to OAuth2 migration

I started working with adding migration from OAuth1a to OAuth2 inside my application and i face some problems. This is what I've done : I updated my partner app just like it is described here https://developer.xero.com/documentation/oauth2/migrate…
Lukasz Ożóg
  • 216
  • 3
  • 15
1
vote
1 answer

Webhook to specific organisation within account

Where do I specify which specific organisation within my account a webhook should be monitoring?
jmsinnz
  • 33
  • 5
1
vote
1 answer

How do you order by descending when using the .Netstandard Wrapper?

I am currently creating an integration with our in house invoicing system and looking to push invoices to Xero when they are created internally. As we have our own invoices and invoice numbers we are currently running a check for the maximum invoice…
Morphis
  • 31
  • 5