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

Identify product in invoice with unique id - Xero API

I'm trying to import invoices from xero account using the Xero API in c#. LineItems collection in invoice object represents the invoice items which are part of invoice. I want to identify products in invoice with unique Id e.g. Invoice1 has 2 line…
user2185592
  • 368
  • 1
  • 8
  • 24
1
vote
1 answer

Custom PHP add to integrate Xero

We are a screen printing company and we have developed PHP app to manage our orders. I was just wondering if its possible to convert orders from our system to invoice in xero? Would love to convert multiple orders into invoice in a single click. I…
Dynamic
  • 21
  • 1
1
vote
1 answer

XERO api - Filter prepayments by Contact ID

Hi I need to fetch the prepayments done to a particular supplier (with contact id of aa941766-b505-4c0d-ae61-16ee78ec995e) within a given date range GET https://api.xero.com/api.xro/2.0/Prepayments query parameters where = Date >= DateTime(2019,…
Vinay
  • 7,442
  • 6
  • 25
  • 48
1
vote
0 answers

Unable to submit leave through PyXero payroll API

I have tested my post data with the Xero API Previewer feature and successfully submitted leave. Similar to the following (ID's are…
Seth
  • 8,213
  • 14
  • 71
  • 103
1
vote
1 answer

Dynamic dates in where parameter

Am I able to use a dynamic date range for the "where" parameter? I'd like to get all the data changed in the last 30 mins. All I can find in the documentation is using static dates: https://developer.xero.com/documentation/api/requests-and-responses
may-z
  • 127
  • 1
  • 1
  • 6
1
vote
1 answer

Xero API - response when request has valid and invalid elements

I'm using the Xero API to post multiple invoices to Xero. This works fine if all the invoices are valid. I get a HTTP 200 response with the GUIDs of the newly created invoices. However, if one of the invoices has an error I get a BadRequest…
Tom
  • 129
  • 1
  • 4
  • 11
1
vote
2 answers

pyxero get LineItems on banktransactions

I'm running pyxero and trying to get the reference and description from a bank transaction but am having trouble getting it. I can run: trans = xero.banktransactions.filter(BankAccount_Name="chosen_account") Which gives me the transcations and…
blountdj
  • 599
  • 1
  • 11
  • 23
1
vote
3 answers

Xero testing webhooks on localhost

So I am running a PHP application on localhost and I want to test an incoming web hook. Is there a recommended way to test the local development for this? Is there an example web hook invoice-paid POST request I could just test with something like…
Callum
  • 1,136
  • 3
  • 17
  • 43
1
vote
0 answers

Rails get time zone based on time zone display name

I am fetching Timezones from an external API (Xero), but the display names returned here are different than those in rails. I am struggling to properly convert them to rails recognisable timezones. Examples of timezones being returned by the API…
Jakub Kopyś
  • 670
  • 8
  • 20
1
vote
2 answers

XERO Api is forcing to open broswer and click manually on access for 30 minutes button

I am integrating xero api in my application. I have purchased api. When I request for oauth_verifier code using unauthorized token, they are forcing to open web browser. On web page they have link saying that "Allow for 30 minutes". After clicking…
Savan S
  • 407
  • 4
  • 19
1
vote
1 answer

C# Wrapper Library SendToContact Property

I'm using version 2.2.1.13 of the c# Xero.API.SDK.Minimal nuget package. On the Invoice class (Xero.Api.Core.Model) there's a nullable boolean property named SendToContact. Does anyone know what this is and/or what it does? I'm not seeing it…
Burian
  • 90
  • 6
1
vote
0 answers

Create a Power BI custom connector for Xero API

I am trying to create a Power BI custom connector using M Language in Visual Studio, I am stuck at how to connect to Xero cloud server and perform OAuth authentication with it, anyone can show me the sample codes would be great. Thanks in advance.
1
vote
1 answer

Xero check token after manual disconnecting

Can't find any way to handle with issue when user disconnects his account manually by going into Settings > General Settings > Connected Apps > Disconnect. After user has beed disconnected i can catch an error only when trying to get something from…
1
vote
1 answer

Xero API - Bank transactions missing

The Xero API doesn't seem to return all bank transactions through the bank transactions endpoint. At least some transactions that are attached to payments and transfers don't seem to be returned. Is there a way around this?
wizzardmr42
  • 1,634
  • 12
  • 22
1
vote
1 answer

How to get Invoice details by Invoice Id in XERO API using C#

I am able to get the Invoice details by using Total or AmountPaid as shown below: var invoices = public_app_api.Invoices.Where("Total=100").Find(); var invoices = public_app_api.Invoices.Where("AmountPaid=100").Find(); I am unable to get the…
Muttu B C
  • 37
  • 5