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 invoice send email using standard .NET library

Here I have created my project on the standard .NET library to GET/POST invoices. But as I want to email the invoice to which it's being created on that name. Here is my sample code below to create invoice. public async Task
user13381500
0
votes
1 answer

why does xoauth have a problem saving the keychain

running windows 7 need to do machine to machine Xero updates don't mind initially getting user to authenticate but after that the system should run unattended. using XOAuth to setup client details, authentication is good BUT get an error saving the…
0
votes
0 answers

Converting nested JSON to CSV with Python

I am using python and I need to convert a nested JSON to CSV. I am exporting the data from Xero's API. I am unsure of how to deal with the nesting to get it into a readable output in CSV form. Here is the JSON I am dealing with: { "Reports": [ …
0
votes
1 answer

Xero API fetch list of organization (all organization)

I have done OAuth2.0 using PKCE flow in .NET Framework (C# Winforms). Now I have tokens_response in my hand. But I'm wondering is it possible to fetch all of the organisation (not only one)?
santhosh
  • 1
  • 1
0
votes
1 answer

Xero request access token is timing out

I'm trying to setup my old ASP.NET MVC app with Xero's latest OAuth 2.0 protocol. As per the documentation, I'm using the official Xero-NetStandard library. I can successfully redirect the user to Xero's consent page, and also get redirected back to…
Jonty Morris
  • 797
  • 1
  • 10
  • 25
0
votes
2 answers

500 Error on createTimesheet from Xero API php wrapper

I'm using the Xero API php wrapper to post timesheets and there's no detail coming back except for "An error occurred" and Status 500. I'm authenticating ok, it's included in the scopes and as far as I can tell it's valid json in the format…
Craig
  • 79
  • 8
0
votes
1 answer

I get an error when trying to create a XERO APP: Failed to create app #07D4

I am trying to create my first Xero app and I am getting a #07D4 error "Failed to create app" and I can't find documentation on this type of error on the Xero documentation.
0
votes
0 answers

FullyPaidOnDate different when retrieving single Invoice vs collection of Invoices when a Credit Note is allocated to it

When I have an Invoice which is fully paid with a Credit Note allocation, the FullyPaidOnDate is different when retrieving a single invoice to what it is when retrieving a collection of Invoices. The credit note is allocated as soon as the Invoice…
DominicF
  • 51
  • 5
0
votes
1 answer

Getting Duplicate Error when trying to do a POST to update a contact in XERO

Whenever I try to update a Xero contact that already exists in the system using a POST request I get the following error "ValidationErrors": [{ "Message": "The contact name Test Contact is already assigned to another contact. The contact…
search-learn
  • 1,037
  • 1
  • 9
  • 23
0
votes
1 answer

Xero - Attach a file to an existing invoice using Attachment API

Documentation => Attachment API. Although access_token is correct, whenever I upload a file, I always got 401 error(unauthorized). pls, explain with an example of your request, including request headers? My request header is: xero-tenant-id:…
Zaw
  • 3
  • 3
0
votes
1 answer

Do ManualJournals LineAmounts have to equal to zero? Xero-API

I am having a look at the xero developer documentation for manual journal lines: https://developer.xero.com/documentation/api/manual-journals#LineItemsPOST. Forgive me for the simple question, but I have a question regarding the adding in…
Gene Smith
  • 169
  • 12
0
votes
1 answer

Not able to get token from XERO

I am trying to get access token for XERO API but no luck, can anyone please help me here. I am having client id, secret key and other required details.
Ripul
  • 1
  • 1
0
votes
1 answer

Xero Api NodeJS - invalid grant issue

I am using the xero-node module to create an app for Xero with NodeJS. For some reason every single request for a refresh token is coming back as invalid grant i have been taken the code and made the callback attempt to grab the refresh straight…
duckdivesurvive
  • 177
  • 1
  • 8
0
votes
0 answers

Xero API, Contacts, Payments Unathorized error

does anybody know what's the reason of getting 'Unauthorized Error' in Xero API. I'm using Xero OAuth 2.0 Code Flow, Xero.NetStandard.OAuth2, Xero.NetStandard.OAuth2Client libs for Xero integration. I'm successfully connect my app to Xero using code…
0
votes
1 answer

How to export all PDF invoices in Xero

I'm just sharing a piece of code I hope will be helpful if you want to get rid of Xero and export all your PDF because by default they are preventing you to do that (probably in the hope you will stay longer). I hope this will help anyone trying to…
Tibo
  • 621
  • 1
  • 8
  • 24