Questions tagged [xero]
134 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
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
0 answers
xero sdk: line item unit price rounding to 2 decimal place
I have posted invoice in xero & passing data in 4 decimal points of unit price but xero is converting it into 2 decimal points, so i am getting total amount issue due to rounding...
Through API I know unitdp=4 have to pass but how to do same thing…

dhrut
- 147
- 1
- 9
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
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
1
vote
2 answers
Xero : OAuth2: Python3: Example Code to get the refresh token
Xero has changed its API to require OAuth2 connections instead of OAuth1.
I had a working solution in OAuth1, but the examples for Oauth2 are scarce at best, but mainly for web sites.
I'm another developer who managed to create an Oauth1 solution,…

Phil. P.
- 46
- 5
1
vote
0 answers
Xero API C# asp.net does not save the input from user to fields in contacts in Xero
I am writing an app that takes user input to create a new contact to the connected org's xero
contacts. I have managed to make it so that when you click on create contact it displays my contact form [Contact form][1]
I have used some of the code…

Andre
- 11
- 6
0
votes
0 answers
Pushing order details from a crm (in this case retool) into Xero via api
The goal is to transfer orders from a retool crm into Xero. The target data might be {{orders_view.selectedRow}} from a retool app.
How is the transfer of data from a retool environment to xero handled with xero api?
I've been struggling to find the…
0
votes
1 answer
Create Batch Payment in Foreign Currency
We are currently using the "Xero API" NPM package and are having an issue when creating a batch payment for a Foreign Currency. We are a British based company and our organisation base currency is "GBP". We have suppliers that are in different…
0
votes
1 answer
Xero API [contacts] does not populate the [ContactPersons] field
I recently found that calling https://api.xero.com/api.xro/2.0/contacts returns results but does not populate the ContactPersons field, and it's always empty.
However, calling the API with the ids query parameter populated, then it does populate the…
0
votes
0 answers
mergepythonclient 0.2.1 Accounting returns UNSUPPORTED_OPERATION when creating a payment to Xero
I am trying to use the Merge Python Client (https://pypi.org/project/mergepythonclient/) to create a Payment that goes to Xero accounting software.
I have successfully linked Xero with Merge and I can view existing payments in the Xero Demo Company…

nktsamba
- 624
- 8
- 12