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 Webhook not receiving events despite ITR status being OK

Good Day to all. I am trying out the Xero webhook in a local setup. Environment: Node js backend Using Ngrok for hosting the endpoint publicly Xero Trial Account I was able to successfully set up the webhook. My service received 3 unauthorized…
Vishanth
  • 1,320
  • 3
  • 14
  • 26
0
votes
0 answers

Exchange a OAuth 2.0 Xero Authorization Code for a Xero Access Token

This is the structure of how to get a Xero Access Token from an OAuth 2.0 Xero Authorization Code according to https://developer.xero.com/documentation/oauth2/auth-flow POST https://identity.xero.com/connect/token authorization: "Basic " +…
0
votes
2 answers

Xero webhook not working says "Response contained a body"

I am trying to get a webhook setup with Xero working locally. I am using ngrok to allow xero to call my localhost. To get the webhook working I must correctly return the "intent to receive" It seems to be working fine in that I can debug it and…
ShrapNull
  • 1,090
  • 1
  • 9
  • 15
0
votes
1 answer

OAuth2 connection receiving a 401 after retrieving access token when authenticating against xero

I've just started with the oauth2 and xero (using .net) I've run through the scoop install, following the docs, grant type of 'authorization_code', scope of 'd', which gave me the access and refresh tokens. Now when running the example project,…
Steve B
  • 473
  • 1
  • 4
  • 14
0
votes
1 answer
0
votes
1 answer

Xero API error [ TokenInvalidAudience ] when fetching tenants list

I have recently started working on Xero API using google apps script (javascript like). From the ouath2 flow mentioned at https://developer.xero.com/documentation/oauth2/auth-flow, I have been able to get through the authentication mechanism to get…
0
votes
1 answer

Xero Api how to mark an invoice has been paid

I can successfully create an invoice thorugh the following code $invoice = new Invoice; $invoice->setReference('Ref-' . $this->getRandNum()) ->setDate(new DateTime(\Carbon\Carbon::parse($payment->created_at)->format('Y-m-d'))) …
Danny Younes
  • 579
  • 1
  • 6
  • 19
0
votes
0 answers

Attaching files to xero invoice using Xero.NetStandard.OAuth2.Api

I am trying to attach a file to the Xero invoice and using Xero.NetStandard.OAuth2.Api and the net framework starter app for it. Below is the code we are using to attach, however it throws an error : A validation exception occurred:The file couldn't…
0
votes
1 answer

Invoices api response filtered by account codes provided

I am trying to use the https://api.xero.com/api.xro/2.0/Invoices api. I would like to receive the api response filter out by account Codes provided. What I mean is I would like to receive only the invoices data pertaining to the account codes that I…
amit1990
  • 437
  • 4
  • 9
0
votes
0 answers

Xero Reports: Profit and Loss tracking ID's filter

The Reports/ProfitAndLoss endpoint lets you specify a tracking category ID to filter by. Is there an option to get a PL for those transactions WITHOUT a tracking ID only? Thanks.
Jeremy
  • 11
  • 1
0
votes
2 answers

Xero.netstandard.oauth2 says UK payroll coming soon.. how can i integrate in the meantime?

I'm writing a new winforms c# integration into Xero. oauth1 is deprecated, Xero.netstandard.oauth2 is the correct SDK to use but some things are flagged as 'coming soon', including UK payroll. My oauth2 authentication is completed, and the…
Lee Stevens
  • 43
  • 1
  • 4
0
votes
0 answers

pdf extension not allowed when adding an attachment to xero with API

Wonder if anyone can explain what rstrictions Xero has for adding a pdf file I creted using mPDF. I have managed to use a png file and uploaded it to an invoice but cannot get past this block. public function attachPDF( $invoice ) { try { …
ThurstonLevi
  • 664
  • 13
  • 34
0
votes
0 answers

How do I reduce the number of Xero api calls below the 5000/day limit?

I have a xero tenant with 6000 clients; how do I get all the custom fields for all the clients without going over the 5000 api call limit? See https://developer.xero.com/documentation/oauth2/limits The original api calls are for the WorkflowMAX…
0
votes
2 answers

add an attachment in Xero using php Xero api

Can anyone help me add a pdf to a Xero Invoice using the official (non calcanai) PHP SDK. I'm connected with oAuth2 and have previously created a draft invoice. I then update the invoice to Authorised and try to add an attachment to the invoice. At…
ThurstonLevi
  • 664
  • 13
  • 34
0
votes
0 answers

Xero Api and bill status

I'm using the Xero Api to create Invoices and Bills, however when I'm creating a new bills, I would like to have it authorised (awaiting payment), but when I add the status in XML AUTHORISED, it create the bill but as a draft. I've…
Romain Dereux
  • 119
  • 2
  • 5