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

Check if Xero OAuth 2.0 Access Token has Expired

I know this may sound simple to those of you who are well versed in OAuth 2.0, but I am still trying to understand it all. I am having to migrate my Xero OAuth 1.0 app to Xero OAuth 2.0. I am able to connect and get back a token. I am saving the…
Rani Radcliff
  • 4,856
  • 5
  • 33
  • 60
0
votes
0 answers

getting error "unsupported_grant_type" on calling Xero refresh token api

I am working with Xero Api for fetching invoices data. when my access token get expired i try to generate new via refresh token but getting unsupported_grant_type as response. Below is my Refresh token request var client = new…
Yash
  • 191
  • 2
  • 3
  • 14
0
votes
1 answer

What is the URL for force creating new Xero OAuth 1.0 applications?

I have several dozen offices that haven't migrated to OAuth 2.0 yet. One of these offices I transferred to another subscriber, and the app needs to utilize 1.0 until we can migrate. I recall being able to create Oauth 1.0 apps after 2.0 was…
particlepat
  • 33
  • 1
  • 2
  • 7
0
votes
0 answers

Use Zapier to link a Customer's Xero account with our platform

I am trying to use Zapier to create an custom integration for customers The main goal is to create a Xero Sales Invoice automatically once a Firestore document has been created. I'm looking for Zapier to handle the whole thing (Even if takes some…
yash
  • 41
  • 1
  • 7
0
votes
1 answer

Xero App is connected to multiple organisation

I am connecting to Xero from my developer app, looks like Xero has changed some implementation in OAuth2.0 and storing information of apps already connected unlike OAuth1.0 where they allowed to connect to any organisation. Is there a any way to…
0
votes
1 answer

Can I use Stitch with multiple Xero accounts?

Stitch is an ETL that provides an integration with Xero accounting software: https://www.stitchdata.com/integrations/xero/ I intended to use Stitch to allow the users of my app to connect their account with Xero, allowing us to store their Xero…
Leticia Esperon
  • 2,499
  • 1
  • 18
  • 40
0
votes
1 answer

How do you retrieve the AssetType from an Asset when using the xero API in a maven java application?

I have integrated the XERO-API on my java application and I need to display a list of Assets along with their AssetType. I have seen that when you make a Postman call to get all Assets, the JSON object items returned contain the "assetTypeId"…
0
votes
1 answer

GetInvoicesAsync fetches only 100 invoices even though there are many more

I have used var invoicesinxero = await _accountingApi.GetInvoicesAsync(accessToken, tenantId, statuses: new List { "DRAFT" }, where: "Type == \"ACCREC\""); There are 700+ Draft invoices in my account but the above only fetched 100 invoices Below…
0
votes
1 answer

How do I filter Batchpayments basis the InvoiceId?

I am able to verify InvoiceID for a particular Invoice in Batchpayment. Using following filter, where=Payments[0].Invoice.InvoiceID==Guid("b55b2deb-8bd7-46b9-9965-2a20ed3ae555") But, not able to filter throughout the array. Tried using following…
0
votes
1 answer

XERO API Oauth 2.0 user authentication

For the past few years I have been using an unattended remote server to process invoices through the XERO API (Oauth 1.0) Periodically (every financial year) we create a new XERO organisation to keep things tidy and avoid slow down. I have just come…
0
votes
4 answers

Xero OAuth2 Node API - Where does the API use the authorisation code provided to the callback?

I have followed the flow described here https://developer.xero.com/documentation/oauth2/auth-flow and can then get a tokenset which works with api requests. However, looking at https://github.com/XeroAPI/xero-node-oauth2-app/blob/master/src/app.ts I…
exception
  • 569
  • 7
  • 20
0
votes
1 answer

xero PHP variable which starts with {

A number of Xero accounts API samples have PHP variables which start with { Example: $invoices = {invoices:[{type: Invoice.TypeEnum.ACCREC, contact:{contactID:"00000000-0000-0000-000-000000000000"}, lineItems:[{ description:"Acme Tires",…
ruraldev
  • 187
  • 2
  • 13
0
votes
1 answer

Putting an "OR" in Xero-API queries

I'd like to expand the search functionality so that users can enter in some text and have that matched against multiple fields eg name and email How do I specify that in the "where" string? if (!is_null($output['search']['value'])) { $where .=…
Sarah K
  • 363
  • 2
  • 15
0
votes
1 answer

How to update AccountNumber value by ContactId in XERO API using C#

I'm trying to achieve update contact with Xero api: I'm trying to update AccountNumber value is null. This is the code for update method. I'm passing value with ContactId and AccountNumber. var xContact = new XeroContact { …
Letoncse
  • 702
  • 4
  • 15
  • 36
0
votes
1 answer

Xero: Something went wrong - previous state is different. CSRF prevention

I am using WP Version 5.3.2 and WooCommerce version 3.7.0. I am having issue with authenticating my site to Xero, using plugin, "WooCommerce Xero Integration", by WooCommerce – v1.7.24. I've tested it with 3x Xero accounts but keep getting issue,…
user2231397
  • 309
  • 1
  • 2
  • 5