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

Delete Invoice from Xero

I'm trying to delete an invoice from Xero by updating its status to "DELETED". Following the xeroizer github page I have tried the following: xero = XeroApp.find_by(business_id: 270); invoice = xero.find_invoice_by_ref(372).first delete_invoice =…
Sagar Pandya
  • 9,323
  • 2
  • 24
  • 35
0
votes
0 answers

Getting "unsupported_grant_type" when trying to refresh xero API token using python

Getting "unsupported_grant_type" when trying to refresh token using python Hi, I've been trying to get a new access token & refresh token using an existing refresh token that I have. I am following the documentation as stated on the website…
dia986
  • 1
  • 1
0
votes
1 answer

credit note not appearing in dashboard but appears under contacts

I am trying to create a credit note via the api. I can do this successfully and i can see the response it creates the record. How ever this does not appear in the business under invoices but i can see it under the contact. How can i fix this so it…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

How to save result of /api/page to state

I'm trying to authenticate to Xero's API. I get a 'code' which is then exchanged for an access_token. I'm still new to NextJS and React so I'm likely not thinking about this correctly. The code I have results in the right data being returned,…
gorlaz
  • 468
  • 6
  • 20
0
votes
1 answer

Xero.NetStandard.OAuth2 Using the "where" parameter to query Items by a list of ItemID

I am using the Xero.NetStandard.OAuth2 nuget package to integrate my project with Xero's API. I have a use case where I need to query a bunch of Items using the GetItemsAsyncWithHttpInfo method. This accepts a filter parameter called "where", in…
theklaw
  • 1
  • 2
0
votes
1 answer

Add new contact in Xero using python FASTAPI

I am trying to add a new contact in Xero using python FASTAPI: define a new contact contact = { "Contacts": [ { "Name": "24 locks", "FirstName": "Ben", …
0
votes
1 answer

Xero API Organization call return obfuscated TaxNumber

Our application calls the https://api.xero.com/api.xro/2.0/Organisation endpoint, returning details about authorized 3rd party organization's Xero accounts. Most of our clients are from New Zealand and we use the Organization 'TaxNumber'. However…
fraew
  • 1
0
votes
0 answers

xero invoice description break line

I had find and tried many way such as: \n .PHP_EOL but when open the billing it not break line, does anyone had success break line? my example code: $line_item->setDescription($item->description."\n \n \n");
0
votes
2 answers

JSON is valid but not working when sent to Xero

I have the below JSON which has been validated with https://jsonlint.com/. However, when I run this through Xero API, it throws an error, shown below. { "Type": "ACCREC", "Status": "AUTHORISED", "DueDate": "2021-12-11T14:24:08Z", …
V4n1ll4
  • 5,973
  • 14
  • 53
  • 92
0
votes
0 answers

Xero - Getting 401 Unauthorized for get:/Accounts, scopes added

I am trying to get a list of my accounts using GET:https://api.xero.com/api.xro/2.0/Accounts with my access token. The response is 401 / Unauthorized My app has these…
Ade
  • 2,961
  • 4
  • 30
  • 47
0
votes
1 answer

Is there any way to edit xero invoice after marked as paid using PHP SDK?

right now I used PHP SDK to create/update invoices and also I used payments API to make as paid. but in some cases I need to edit the order even after the invoice is marked as paid, I am not able to find the way how to do it. Can anyone guys tell me…
Niraj Savaliya
  • 179
  • 1
  • 14
0
votes
0 answers

Xero Client error: `POST https://api.xero.com/payroll.xro/1.0/Timesheets` resulted in a `400 Bad Request` response: 0Bad request

Need help to fix Xero SDK v2 issue posting/creating timesheet. Xero PHP API reference https://xeroapi.github.io/xero-php-oauth2/docs/v2/payroll_au/index.html#api-PayrollAu-createTimesheet My code is below require __DIR__ .…
Guri
  • 83
  • 8
0
votes
1 answer

Xero JWT audience

I need an audience when trying to decode the access_token I receive after authentication. I can't seem to find any docs on what this audience is supposed to be. I tried using my client_id to no avail. Is it supposed to be…
Serj
  • 1
0
votes
1 answer

xero api connection to get data from accounting - invalid oauth2

I would like to use xero-python My app is connected on Xero developper. So I was able to connect and save token and Ids for scope: scope = 'offline_access accounting.journals.read' I use this to Xero requests : def XeroRequests(): …
0
votes
0 answers

Xero API Disconnect Issue ,Not able to see login screen after disconnecting

I am disconnecting with xero as per the xero documentation that is revocation of the connection and deleting the organization which are connected and both the apis are working fine. But when I disconnect and click on connect again it still remembers…
test duck
  • 1
  • 1