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 Invoice types

I'm trying to upload invoices to Xero via their API. However in the schema under 'Type' it lists the possible enums and says 'See Invoice Types', but I can not find the description of the types anywhere. The types aren't described in the web…
Mark
  • 27
  • 7
1
vote
1 answer

Sending bulk of Expense claims to Xero account

I have a nodejs app (SAAS) that manage company expenses, I want to ingrate with xero so that my customers can send the submitted requests on my website (aka. Expense claims ) to xero by one click, I found that I can send requests one by one, but I…
1
vote
1 answer

How to access specific line item value from Xero in a custom Zapier app?

I'm building a custom Zapier app and need to get a specific nested value via the Xero API. My API endpoint is set up like this: const options = { url: `https://api.xero.com/api.xro/2.0/Contacts/${bundle.inputData.ContactID}`, method: 'GET', …
1
vote
1 answer

403 Error received from Xero API on request despite valid credentials

We're experiencing an issue with an integration customer who has not been able to sync using the oauth2 system for two of their three tenants. One of them is syncing correctly and without issue, but the other two return the following: [403] Client…
C Arnoldus
  • 21
  • 3
1
vote
2 answers

Xero Authorization Cancel in ASP.NET

How to handle Xero Callback error using asp.net
1
vote
1 answer

Power Query M Language Dynamically Increase Offset Value

I created a web contents object within a function to query an API endpoint in power query. I use a list generate to dynamically increase the records in that list, however, I can't seem to figure out how to increase the offset by 100. At the moment I…
Luke02
  • 31
  • 3
1
vote
1 answer

Can't install the Xero.NetStandard.OAuth2

I cannot install the Xero.NetStandard.OAuth2 Nuget package from either VS2017 or VS2019. The error is: Could not install package 'Xero.NetStandard.OAuth2 3.16.0'. You are trying to install this package into a project that targets…
1
vote
1 answer

What is the idiomatic way to get a user's email from Xero's OAuth flow

I have a web app which uses the Xero.NetStandard.OAuth2Client package to allow for authentication with Xero. Once the user is redirected back into my app, I use the IXeroClient.RequestAccessTokenAsync method to exchange their code for an IXeroToken…
Itamaram
  • 719
  • 7
  • 17
1
vote
1 answer

XeroPHP API - How to set BrandingTheme for Contact using calcinai XeroPHP framework?

We are using calcinai XeroPHP framework in our web service. We have 3 different Branding Themes for our contacts and I know all this branding themes ID's. To assign BrandingTheme to existing contact I see special method in Contact class: public…
Dmitry
  • 499
  • 1
  • 3
  • 19
1
vote
1 answer

How to retrieve custom Profit and Loss report using Xero API

I have created a custom report layout for Profit and Loss report in Xero. How can I use the API to fetch Profit and Loss report in said custom layout? Xero API documentation talks about a parameter called standardLayout If you set this parameter to…
VishalDevgire
  • 4,232
  • 10
  • 33
  • 59
1
vote
1 answer

Xero OAuth2 Questions

I have migrated my website to Xero 2.0 and it works, for creating Invoices. However after a few hours i have to reauthorise by clicking on the https://something.com/xero-oauth2/authorization.php file in the browser, reconnecting to the Xero account,…
onesixty
  • 89
  • 8
1
vote
1 answer

Xero API Forbidden getting Item

This only happened in the past few days that I am having this issue but only for getting an Item. I can get contacts and get branding themes. Therefore, tenand id is working and accesstoken. This is the endpoint when i'm getting…
Jen143
  • 815
  • 4
  • 17
  • 42
1
vote
2 answers

Account list doesn't return account id for "grouped" accounts

I'm using the Xero API to do some integration and I'm using the accounts get feature to return a list of accounts. I'd like to join this to some of the reports, for example the profit and loss report which would allow me to then group the accounts…
Chris Pont
  • 789
  • 5
  • 14
1
vote
0 answers

Building a Power BI Connector for Xero API

I am aiming to get data from the Xero API into Power BI for my Organisation. To this end I believe I need to create a custom connector as PBI doesn't have a certified connector for Xero. I have experience in Power BI and M language but this is my…
Jaime
  • 11
  • 1
1
vote
1 answer

xero API : Struggling to add a basic invoice

Updated to show new code / new error @ 10/12/2020 11:30 I need to copy invoices from my website to xero using their API. I managed to get this working using the OAuth 1 but now need to update to OAuth2.0. I've installed xero-php-oauth2-starter which…
James
  • 39
  • 8