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
14
votes
2 answers

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 code sample for public application) I am using…
user3024749
  • 151
  • 1
  • 10
8
votes
3 answers

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 experience integrating a Xero Partner Application with an…
tqrecords
  • 542
  • 1
  • 5
  • 20
7
votes
3 answers

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" } Please refer below code i've used public function…
Kirit
  • 405
  • 3
  • 18
7
votes
1 answer

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 consumer_secret. Is there a quick way. I have checked…
kamlesh.bar
  • 1,774
  • 19
  • 38
7
votes
1 answer

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 This is my code: try{ $lineitem = new…
hungrykoala
  • 1,083
  • 1
  • 13
  • 28
7
votes
2 answers

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 StackOverflow posters. Node.js https pem error:…
GeneralBear
  • 1,011
  • 3
  • 11
  • 35
6
votes
2 answers

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 database. The Xero SDK I am using is expecting an…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
5
votes
1 answer

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: openid profile email accounting.transactions…
the_big_blackbox
  • 1,056
  • 2
  • 15
  • 35
5
votes
2 answers

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 signature should match the signature in the header for…
5
votes
1 answer

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 signature provided in the header. As part of the…
user982124
  • 4,416
  • 16
  • 65
  • 140
4
votes
2 answers

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": [], "lastEventSequence": 0, "firstEventSequence": 0, …
Ujjual
  • 958
  • 2
  • 10
  • 36
4
votes
1 answer

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 for this but my issue is that the Webhook expects a…
Reece
  • 2,581
  • 10
  • 42
  • 90
4
votes
0 answers

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 anyone here might have some experience with…
Nate
  • 41
  • 2
4
votes
1 answer

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 now need to switch to oAuth 2. As there is no front…
4
votes
1 answer

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 my response from ngrok: HTTP/1.1 401…
Callum
  • 1,136
  • 3
  • 17
  • 43
1
2 3
41 42