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

Xero API - New Invoice Line is not Setting tracking category

I am writing a new invoice with one line item into Xero. It works fine, except that the Tracking Category is not being set. I am following the instructions here: https://developer.xero.com/documentation/api/invoices#post And below is part of the…
Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
0
votes
1 answer

Xero API - ability to load data by tracking category?

We need to load invoices whose lines are tagged with a specific tracking category. Right now the way to do this is to load ALL invoices, which gets invoice header info, then load invoice Lines, which finally gets tracking info, then filter out the…
Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
0
votes
2 answers

How to set a tracking category option using xero API?

How do we set a division (tracking category option) using Laravel 5 wrapper for Xero's PHP API? According to the Xero API the object that gets send should look something like this:
Johnny
  • 386
  • 1
  • 3
  • 11
0
votes
2 answers

How can I add an invoice to Xero?

I managed to add a contact but when I try and add an invoice I get an error message 'A validation exception occurred'. I would appreciate suggestions as to what is causing this error. private void button1_Click(object sender, EventArgs e) { try …
John
  • 45
  • 6
0
votes
1 answer

Support of create, update and delete endpoint for repeating invoice in Xero API

I just released that Xero API do not support create, update and delete for repeating invoice. They seems to only support read... In my company, we are building a CRM website and having the ability to manage repeating invoice would be a GREAT help.…
0
votes
2 answers

Xero webhook Validation Not working

I am trying to validate a xero webhook for Invoice create and update. here is my code: $body=file_get_contents('php://input'); $yourHash =…
Logita Kurrey
  • 71
  • 1
  • 10
0
votes
1 answer

UnauthorizedException token_rejected

I am using the Demo company to develop. The company expired so I re-activated it However when I try to run my unit test to connect to a table I get the following error Xero.Api.Infrastructure.Exceptions.UnauthorizedException:…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
0
votes
1 answer

ExpenseClaims do not include any Receipts so how do I tie back to an Account?

I am using the Xero API to download transaction to try and build a view of Cashflow. For this I need to be able to categorise the Amounts into their accounts. For Invoices and Bank Transactions I use the AccountCode on the LineItems collection to…
james2509
  • 1
  • 1
0
votes
1 answer

Downloading all transactions from Xero to reproduce General Ledger

I'm trying to use the Xero API to download all transactions to reproduce the general ledger in an external system so I can use it to reconcile figures within that system. So far, I've got it downloading invoices, bank transactions, manual journals…
wizzardmr42
  • 1,634
  • 12
  • 22
0
votes
1 answer

System.Security.Cryptography.CryptographicException: 'The system cannot find the file specified

I followed the instructions at the Xero developer network to set up my Win 64 public and private key, and registered a demo app. I am using the code at the API .net framework 4 source` When I try and run a unit test from the CoreTest project it…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
0
votes
1 answer

Xero Private App to get invoice with cURL- failed to validate signature / error 500?

I am trying to communicate with my Xero account through Xero API, a simple bash script and cURL. Also, I am working with a Xero Private App, this means I have already generated a public/private keypair, the public key uploaded to Xero and the…
Zeruno
  • 1,391
  • 2
  • 20
  • 39
0
votes
2 answers

Correctly send a 200 response with an empty body to a WebHook. Minimal example provided

Following some examples online, I am to return a 200 response for a correctly signed payload, and a 401 response for an incorrectly signed, or malformed payload. The following minimal example has been tested. The signature is being generated…
pcgben
  • 726
  • 7
  • 24
0
votes
1 answer

Best practice for environments with Xero-API development?

We are coding against the JDE API using the Demo system for our own company. But this is just one environment. For our real work we generally have Dev, UAT, and Prod. Does anyone know how best to do this with Xero? Should we sign up three times,…
Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
0
votes
1 answer

Python Looping over an argument in a function

I am being a noob trying to loop over a function from pyxero: invoices = xero.invoices.filter(page = 1) The above call returns a list of dictionaries which becomes blank when there are no more pages left: [] . So the iteration would stop when the…
DBa
  • 261
  • 1
  • 3
  • 11
0
votes
1 answer

Xero Api matching Accounts with Invoices

I am trying to pull invoices by Accounts and have not managed to find a way to link the two. Am I missing something? I tried through Contacts but it doesn't seem to have an Account or Account ID to match I am using Pyxero for this, however this…
DBa
  • 261
  • 1
  • 3
  • 11