Skip to main content
Filter by
Sorted by
Tagged with
14 votes
2 answers
5k views

xero api integration in php for a public type application

I want to integrate xero api for public application in php. I am stuck with oauth application authorization I have download code from github https://github.com/XeroAPI/XeroOAuth-PHP (find on xero api ...
user3024749's user avatar
8 votes
1 answer
15k views

Invoice::setDueDate() must implement interface DateTimeInterface, Xero API using calcinai

I am following this wrapper I have this error: Catchable fatal error: Argument 1 passed to XeroPHP\Models\Accounting\Invoice::setDueDate() must implement interface DateTimeInterface, string given ...
hungrykoala's user avatar
  • 1,083
8 votes
3 answers
1k views

Connect Azure Website to Xero Partner Application

I'm integrating my app with Xero which requires two certificates. I uploaded them to Azure with help from this article, but I'm still unable to connect to the Xero API. I'm hoping someone has ...
tqrecords's user avatar
  • 542
7 votes
2 answers
18k views

Keep getting error:0906D06C:PEM routines:PEM_read_bio:no start line

Going crazy trying to solve error on Node.js while trying to contact Xero API. I've used a bunch of combinations of '.cer' and '.crt' and '.pem'. I've followed the advice of a number of ...
GeneralBear's user avatar
  • 1,011
7 votes
3 answers
6k views

Invaild Grant issue in Xero OAuth2.0 Refresh token

I'm using Xero OAuth2.0 APIs, I am refreshing token once token is expired. Xero Documentation I'm storing token in JSON file so i can retrive next time. Erorr Response: { "error": "invalid_grant" } ...
Kirit's user avatar
  • 415
7 votes
1 answer
2k views

How to bind configuration value Laravel service provider on run-time?

I have created custom service provider which extends XeroServiceProvide, Basically, I have multiple Xero Account and I want to change two configuration params value runtime consumer_key and ...
kamlesh.bar's user avatar
  • 1,804
6 votes
2 answers
2k views

Can I, how do I, supply a settings file to an Azure Function?

When porting an application that uses a settings file to an Azure Function, is it necessary to remove reliance on the file? I want to write a function app to import data from Xero into an Azure sql ...
Kirsten's user avatar
  • 17.5k
6 votes
2 answers
1k views

How to Validate a Xero webhook payload with HMACSHA256 python 3

Based on the instructions here (https://developer.xero.com/documentation/webhooks/configuring-your-server) for setting up and validating the intent to receive for the Xero webhook. The computed ...
Isaac Ayetoro's user avatar
5 votes
1 answer
4k views

PHP - Setup Webhook Receiver with signature verification

I need to setup a PHP page for receiving Webhooks - I've done many of these in the past so that is not a problem, but the API I'm working with for this project requires that my webhook verifies the ...
user982124's user avatar
  • 4,572
5 votes
1 answer
2k views

Xero API 401 unauthorized when retrieving Accounts API endpoint

I am currently trying to retrieve the account details for the list of accounts using the following API endpoint : https://api.xero.com/api.xro/2.0/Accounts. I have the following scopes included: ...
the_big_blackbox's user avatar
4 votes
2 answers
5k views

Encoding request body with HMAC sha256 and base64

How to encode a request body using HMAC sha 256 and base64. The request object that i receives from xero webhook. HEADER: "x-xero-signature" : HASH_VALUE PAYLOAD: { "events&...
Ujjual's user avatar
  • 999
4 votes
1 answer
1k views

How to Submit Post Requests to Xero API Inside Xero Webhook

I have a Webhook on my Xero Account for Invoices. When a new invoice is created I want to access the Xero Api using the data from the Webhook to Send the user the invoice email. I have all the code ...
Reece's user avatar
  • 2,681
4 votes
1 answer
1k views

Xero oAuth 2 authorisation

I have a .net core web API server that I connect to from a mobile application. The server creates an invoice on Xero and sends the user an email etc... I have been using oAuth 1 with no issues, but ...
Neil Langston's user avatar
4 votes
1 answer
3k views

Laravel return blank HTTP response

So I am setting up a webhook with the Xero API and it expects a blank response with no cookies and gzip etc. I cannot seem to work out how to send a completely blank response. Here's an example of ...
Callum's user avatar
  • 1,175
4 votes
1 answer
12k views

Node.js mysql results to array

I've been slowly learning node.js so that I can integrate things better between a lot of our current ops (mysql) and Xero accounting. I have several tables in mysql, one each for ["invoices","...
Jon Quiros SV's user avatar
4 votes
0 answers
124 views

xero_python Create Timesheet

I'm working off xero_python app example seen here and attempting to make a create_timesheet route. So far I've not found any material on creating timesheets using xero_python.payrollau so wondering if ...
Nate's user avatar
  • 41
3 votes
1 answer
2k views

Connecting to Xero OAuth2 from localhost give CORS Erros

Im connecting to the Xero oauth server 'https://login.xero.com/identity/connect/authorize' through an Angular 7 app using the angular-oauth2-oidc package. In my authConfig i have the following ...
Nico von Ronge's user avatar
3 votes
2 answers
4k views

Xero API 403 - AuthenticationUnsuccessful error

I am using the Xero Api with Nodejs and the xero-node library. I have completed the oAuth flow and saved the token to the database. The issue i am now having is continually getting a 403 forbidden ...
duckdivesurvive's user avatar
3 votes
2 answers
1k views

Is there a way to signin Xero api using oauth2 in c# desktop application?

There are several .Net sample codes that using oauth2 to signin Xero, but all of them is working with browser (most of the sample code for C# is for ASP.NET MVC). I am going to develop a desktop ...
ysk silver's user avatar
3 votes
2 answers
1k views

Retrieve "Shopify Payments" fees by Order # for reconciliation with Accounting + Bank Deposits?

Reconciling deposits, within an accounting system, coming into a Shopify User's bank account from a Shopify store running Shopify Payments (or otherwise) appears to be one of the things people ...
Necevil's user avatar
  • 2,892
3 votes
3 answers
2k views

Xero PHP API Error: "You are not permitted to access this resource"

I have the Xero API setup and the OAuth flow working. I have linked up the "Demo Company UK" as the tenant (Organisation) and have granted my user with Adviser • Contact bank account admin, ...
Nick Howarth's user avatar
3 votes
2 answers
287 views

Xero API, create payslips for PayRun in "DRAFT" status

community I would be grateful if you could help me with Payslips creation via Xero Api? I didn't find any answers to my questions on GitHub, Dev community and official documentation.. If we create ...
MustDie1Bit's user avatar
3 votes
1 answer
1k views

403 Error received from Xero API on request despite valid credentials

We're experiencing an issue with an integration customer who has not been able to sync using the oauth2 system for two of their three tenants. One of them is syncing correctly and without issue, but ...
C Arnoldus's user avatar
3 votes
1 answer
5k views

Azure Devops Pipeline build fails Could not resolve this reference Could not locate the assembly

First time using the Azure Devops and the first pipeline I set up keeps on failing. I have a project created in VS 2019 to test the new Xero Oauth 2.0 implementation. I have installed the Xero....
Margie's user avatar
  • 73
3 votes
1 answer
846 views

How to get name of the connections in OAuth2?

After successfully establishing OAuth2 connection to Xero, call to https://api.xero.com/connections is giving only the id, tenant id and type. How to get the name (display name) of the connections? ...
Michaes's user avatar
  • 73
3 votes
1 answer
458 views

Setup Webhook Receiver with signature verification - computed hash sometimes off by one character

I'm trying to develop a webhook for the Xero API for when a Contact is updated. I managed to get past the Intent to Receive validation (eventually) thanks to the answers. However it doesn't always ...
Healyhatman's user avatar
  • 1,608
3 votes
2 answers
663 views

Xero API Webhook Server using Python and Azure functions

I am working with Azure Function Apps to receive webhooks from Xero for processing. However, I am getting stuck with my HASH not being computed correctly. I think it something to do with the way ...
Bryton Wishart's user avatar
3 votes
1 answer
207 views

Xero-Api and Vapor 3 unable to connect to recive token

I have a vapor3 app within which I am trying to connect to the Xero Api, the process is fairly simple. We send the user to a xero web page where they login with the details and authorise our ...
Joby Ingram-Dodd's user avatar
3 votes
1 answer
126 views

How do you get Aged Receivables By Contact in the xero-node library?

I'm using the xero-node library and attempting to get Aged Receivables By Contact. I cannot find any documentation on doing so as it appears that there is only one accepted argument: ReportID. xero....
ariaule's user avatar
  • 51
3 votes
1 answer
876 views

get invoice in my site using invoice id from xero api?

I am using xero for generate invoice, now I want get invoice using xero invoice id in php, my code is ........... $nik = $xero->load('Accounting\\Invoice') ->where('InvoiceID', $...
Neeraj Prajapati's user avatar
3 votes
0 answers
648 views

Integrating React app with Xero API using OAuth 2.0

Created a new app a developer Xero account. From the App, I got client_id and a callback. This is a dotnet core project integrating Xero SDK. I created a simple HTML using the following code and that ...
Athar's user avatar
  • 629
3 votes
0 answers
225 views

How to request Xero API in R programming language?

I am trying to request the XERO demo company data via its API using R programming language. I am getting the following error: Error in init_oauth1.0(self$endpoint, self$app, permission = self$...
Mickey Yang's user avatar
3 votes
2 answers
352 views

How can I remove the session cookie from the response in my Rails project in order to support Xero Webhooks?

I am trying to implement a Xero Webhook in my Ruby on Rails application. However, the Xero documentation says that the response should not contain any cookie. Hence, I am trying to find a way to ...
p.matsinopoulos's user avatar
2 votes
1 answer
290 views

PhpStorm isn't doing code completion with large file

I've just installed this library. PhpStorm does its usual code completion, except for the \XeroAPI\XeroPHP\Api\AccountingApi class. The \XeroAPI\XeroPHP\Api\IdentityApi class in the same folder works ...
SpoonNZ's user avatar
  • 3,819
2 votes
1 answer
1k views

Xero-Node undefined Call Back Params

I am using the following: https://github.com/XeroAPI/xero-node I am using a React app, talking to a Nodejs backend. The React app calls the node file connect.js as per the below: // connect.js (...
Jim Dover's user avatar
  • 623
2 votes
2 answers
2k views

Is it possible to access the Xero API without user interaction

I am trying to come up with something which will be scheduled to run daily and would import newly created invoices from a database into Xero. To have this run daily, I want to avoid logging in ...
Shardul Virkar's user avatar
2 votes
1 answer
314 views

Xero API LeaveTypeID

I'm trying to integrate a web app in PHP to integrate Xero. My objective is to submit a leave form to Xero from the application. I'm using https://github.com/XeroAPI/XeroOAuth-PHP and did manage to ...
Tanvir Gaus's user avatar
2 votes
1 answer
2k views

Buffer to base64 format for pdf

When I run getAsPDF on the Xero side, I get a buffer output like this: I am trying to convert it to base64 format and send it as pdf, but I could not convert it to pdf format.
Furkan Gulsen's user avatar
2 votes
1 answer
922 views

How to Validate a Xero webhook payload with HMACSHA256 Node js

I need to validate Xero webhook in my node js project. This is Xero documentation steps to validate: https://developer.xero.com/documentation/webhooks/creating-webhooks#STATUS var crypto = require(&...
Hiral's user avatar
  • 132
2 votes
1 answer
2k views

How to create custom invoice fields in Xero?

Is anyone knows how to create customized fileds in our Xero invoices? We are a tour company and we need to add the following fields. Date of Sale, Booking ID, Guest Name, Tour Name, Children, Adults ...
Johnny's user avatar
  • 1,725
2 votes
2 answers
885 views

Parsing a RS256 JWT from Xero using JJWT

I'm trying to parse a JWT from Xero for SSO. Xero documentation states "The JWT is a JSON payload signed with your client secret and the RS256 signing algorithm". I can get the JWT from Xero....
Bernie's user avatar
  • 31
2 votes
1 answer
288 views

OAuth2 integration with Xero using Xojo and Chilkat

The old Chilkat forum appears to have moved here. For years I've had Chilkat's OAuth1 working fine for integration with Xero (from Xojo). Now Xero are replacing OAuth1 with OAuth2. Xero say that once ...
Robin Craig's user avatar
2 votes
1 answer
746 views

How you organize the interaction between Angular app and Xero OAuth2.0?

I am building Angular app that should interact with Xero API. Xero doesn't provide any SDK for Typescript (https://developer.xero.com/documentation/libraries/overview), but Node JS SDK seems to be the ...
Artsiom's user avatar
  • 317
2 votes
1 answer
2k views

How do I authorise a cron job php file to access Xero?

I am migrating to Xero and want to set an invoicing process to run once a month at a specific time using a cron job, I can get the cron job to fire and I have set up a php page based on https://github....
ruraldev's user avatar
  • 187
2 votes
1 answer
534 views

Xero SDK - OAuth implementation of state parameter

I have currently implemented a NodeJs, express api with the xero-node sdk package, and I've run into an issue where it doesn't seem that the OAuth state parameter is not being used (though I see it is ...
Nathan's user avatar
  • 90
2 votes
1 answer
482 views

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, ...
Jineshk's user avatar
  • 23
2 votes
1 answer
179 views

Xero API Tax Rate Modified Since

I'm attempting to filter the list of Tax Rates in Xero by the date since which it is modified. Unfortunately it does not seem to be working, even when using the "Modified After" filter in the API ...
Nathan Chan's user avatar
2 votes
1 answer
789 views

XERO Delete connection with connection id

I want to allow deleting specific tenant from my api but every time I make DELETE request to https://api.xero.com/connections/{connectionId} with my access token I get "AuthenticationUnsuccessful&...
huligan17's user avatar
2 votes
1 answer
1k views

How to update an invoice Line Item in Xero?

I'm trying to integrate xero in my application but facing the issue while updating an invoice line item. I need to update discounts on the line item but when I do this I'm getting an error saying &...
Fazal Mirza's user avatar
2 votes
1 answer
479 views

Xero Contact Credit Limits in API

Xero has finally released a "Credit Limit" facility for Customer accounts. We are using the https://api.xero.com/api.xro/2.0/Contacts endpoint to receive Customer balances. But, there is no sign yet ...
Jamie Ellwood's user avatar

1
2 3 4 5
15