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
0 answers

Xero Rounding 'unitdp' parameter

I used following code in xero API to generate an invoice. I want to know is this the correct way to pass 'unitdp' parameter with the request? $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =>…
0
votes
1 answer

Is it possible to create invoice line items with an auto lookup tax type using the Xero accounting API?

I have an Item set up with Tax rate: Auto Look Up But when I create in invoice via the API containing line item with this item code, the tax is not looked up. I've tried retrieving my Items from the Items API, to see its TaxType. It is set to…
0
votes
0 answers

Can I create Quotes without specifying UnitAmount

We are generating Quotes from our application using Xero API. We have created our Line Item in Poducts and Services and added price there. From the API, we do not wish to send Price again, as this is already in Xero. We wish to send LineItem code…
Jean P
  • 1
0
votes
1 answer

Workflowmax client update endpoint giving 500 error

When I try to update the existing client with https://api.xero.com/workflowmax/3.0/client.api/update this endpoint, I am getting a 500 error without any details.client list and get endpoints working fine. I tried with one field update. That also…
Niroj
  • 52
  • 5
0
votes
1 answer

XERO-NODE SDK => How to choose a specific email template

I am using the Xero-node SDK to automatically create client invoices which works well. At the end of the process, I would like to automatically email the client the invoice. In the documentation it has the following example: const xeroTenantId =…
Fraser
  • 1
0
votes
1 answer

Invoice API has DueDate field as Optional but gives validation error when not supplied

I have an application that posts invoices to Xero. In the Xero API spec for invoices it lists Due Date as an 'optional' field - see here: https://developer.xero.com/documentation/api/accounting/invoices However if I exclude the invoice field from my…
Rob
  • 1
0
votes
0 answers

Seeking Xero API Python Sample Code not using Flask

Is there some good Python sample code for accessing the Xero API that does not use Flask? I do not want a web-based application. I am aware of the Xero Python repository; their sample apps use Flask. Thanks.
0
votes
1 answer

I am trying to connect to the Xero API to recipe invoices but getting the following error

When i am trying to get the invoices using the Xero API i get an error with .get_invoices('').invoices. Please see the error below: *** XeroRuby::ApiError Exception: Error message: the server returns an error HTTP status code: 403 Response…
0
votes
1 answer

I am trying to integrate Xero API to ruby on rails however am unable to access the Token Set

I am integrating Xero API into my ruby on rails application, however when trying to get a Token Set I am getting the below error: *** XeroRuby::ApiError Exception: Error message: the server returns an error HTTP status code: 400 Response headers:…
0
votes
1 answer

Xero API Token Handling

We think we have a challenge with Xero tokens possibly due to how store and retreive the access and refresh token. We have an application that seems to disconnect some tenants/Xero Organizations from time to time. We are currently storing a single…
Ryan P
  • 3
  • 2
0
votes
0 answers

Xero Invoice API

I need to sync invoice from my application to xero portal for that i had used invoice api which provided by Xero. Invoice API URL : https://api.xero.com/api.xro/2.0/Invoices In xero invoice api tax and discount parameter available for lineitem…
Ravi Thanki
  • 251
  • 2
  • 14
0
votes
1 answer

Xero API - Can not delete All Line Items in an Invoice

Everything was fine about line items in an invoice until now when I found it was not deleting all line items by providing an empty array in the Invoices.LineItems. New line items are being added, existing line items are being updated or a single or…
KAR
  • 758
  • 5
  • 8
0
votes
0 answers

How to obtain all employees leave balances in fewer API calls

I am working on a back-end service that needs to get all employees' leave balances in Xero. I would like to know if there is a way that allows me to get all employees' leave balances in fewer API calls. It seems like if I get the employees via the…
ssdyfan
  • 1
  • 1
0
votes
1 answer

Can I set the audience in the JWT that Xero returns?

I'm using the Xero OAuth2 code flow to authenticate my users. I'm trying to use the access token (a JWT) returned by Xero in order to authenticate requests against a Fauna database. This is theoretically possible by using a Fauna AccessProvider,…
Alex Nitta
  • 21
  • 6
0
votes
1 answer

Webhook response issues

We have implemented a webhook receiver in PHP with Apache and it normally works fine. But when the server gets very busy, Apache takes long to complete the request and the webhook goes into retry mode. From there is just escalates. Each time the…
AndreT
  • 11
  • 3