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 returning a cryptic "Unknown Consumer"

I am getting a very odd error from the Xero RequestToken endpoint. oauth_problem=consumer_key_unknown&oauth_problem_advice=Unknown Consumer (Realm: , Key: ) I know the Consumer Key provided is correct and have verified the Authentication: OAuth…
tigerswithguitars
  • 2,497
  • 1
  • 31
  • 53
1
vote
1 answer

How to perform a check for duplication in account number field of contacts in xero?

I want to assign a MOD10V05 valid Bpay CRN(generated using https://github.com/JedWatson/node-bpay) to the contact in xero account using xero-api. I'm able to get the contacts and update them with the generated Bpay CRN. But I want to perform a check…
Bhawna Saroha
  • 603
  • 1
  • 11
  • 28
1
vote
0 answers

Syncing our current products to xero api limit issue

Currently, I want to do a mass update of products account codes. However, I am hitting an API limit as we will need to retrieve the item first before doing an update. So the code currently is like this foreach($products as $product) loadByGUID…
Napmi
  • 521
  • 2
  • 13
  • 32
1
vote
2 answers

How to generate an access token in Xero with OAuth 2.0?

I am trying to generate an access and a refresh token using the new Xero authorization via OAuth 2.0 in Postman but the response is always "error": "invalid_client". I've been following the instructions on…
Martin
  • 11
  • 1
  • 3
1
vote
2 answers

How to fix Access Denied while reading X509Certificate2

I am creating an API to login to Xero via Private Applications, so I followed their instructions and Xero API documentation to see how it works. Link here. So I created an App, and generate a public certificate (.cer file) using OpenSSL, and also…
Sohail
  • 43
  • 1
  • 12
1
vote
1 answer

Which OAuth2.0 flows are supported with Xero's OAuth 2.0?

We are looking build integration for few of our Xero customers. This integration would be seamless for end user i.e. they won't have to log into Xero they will use our system, for certain use-cases, and we will make relevant api calls. With Xero's…
Jineshk
  • 13
  • 3
1
vote
0 answers

Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/xero/api/ApiClient

I have got all the access token and secret from xero but when trying to access the xero api using ApiClient, getting error Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/xero/api/ApiClient I am trying this out…
Amitabh
  • 11
  • 1
1
vote
1 answer

Integration xero (invoicing gateway) in apache felix (osgi)

I have a project with multi modules in karaf (version 3.0.3), and i needed to add one dependency to Xero API (invoicing gateway) - https://github.com/XeroAPI/Xero-Java I use OSGI implementation through the felix apache. In module, I added all…
roliveira
  • 87
  • 1
  • 12
1
vote
0 answers

Recording Xero check payments via payments endpoint - will they automatically match bank statement?

I'm trying to work around the Xero API's lack of support for payment via checks. If I use the payments endpoint to create and apply new payments to existing invoices, and as part of the PUT add the check number to the reference field, does anyone…
GYorke
  • 11
  • 3
1
vote
1 answer

Xero-node get invoice as PDF

I am trying to create an invoice in xero and then get a pdf version uploaded onto mongoDB through my parse server. I am authenicating xero in an express app in the main.js of my application. When I save the invoice Pdf to parse it is rejected as…
twl2009
  • 79
  • 1
  • 11
1
vote
1 answer

How to set Paging for Xero's Payment API?

There doesn't seem be an option to set the page quantity in the Payment endpoint for the GET method. I need to pull the data from every line item within a payment, but cannot see a workaround. Has anyone else come up with a solution?
1
vote
0 answers

Xero Accounting Invoice Object not set to a Reference

I have created a connection (works well) and now I'm setting-up the Invoice. When I debug it, at one of the lines it generates an error with the object not set to a reference. Invoice inv = new Invoice(); inv.Date = DateTime.Now.Date; inv.DueDate =…
1
vote
0 answers

Can I post multiple timesheet lines at once?

I'm using the Payroll - NZ Xero API. I'm wondering if there is a way to post multiple timesheet lines at once. My application sends large batches of timesheets in one hit. Going by the docs, I should send each timesheet line individually. This…
Devman
  • 310
  • 2
  • 10
1
vote
0 answers

Updating an existing Contact

I am using xero-java-sdk. I am looking at updating an existing contact. There is a method in accountingApi updateContact(contactId, contacts) It is not clear on how to use that method. Can someone give an example on how to use.
Rajesh
  • 91
  • 1
  • 6
1
vote
1 answer

Adding Barcodes to Invoices

I am looking to use a Xero API to send document (invoice) details to a database a return a unique document ID. I would then like to use that Document ID to render a Barcode that can later be scanned for processing. Does anyone know if this is…