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
1
vote
2 answers

Xero Accounting API GetContactsAsync Not Authorised + Contacts does not contain public instance definition for 'GetEnumerator' Error

I've been trying to learn how to use the Account API and decided to download and use the XeroOAuth2Sample that's provided on the docs. (https://github.com/XeroAPI/xero-netstandard-oauth2-samples) So within the HomeController.cs, there is an example…
zadders
  • 428
  • 1
  • 8
  • 30
1
vote
0 answers

Not able to install Xero.NetStandard.OAuth2Client

I am using .net entity framework version 6.3.0. I am trying to install Xero.NetStandard.OAuth2Client package into my project. When trying to install getting "Severity Code Description Project File Line Suppression State Error Could…
1
vote
0 answers

Not able to host Xero oAuth20 dll in Azure Server

I have implemented Xero oAuth20 in Asp.Net Web forms using Xero.NetStandard.OAuth2 -Version 0.4.0 version from Nuget package manager. This is working fine in my local, how ever if I try to deploy solution in Azure server, the publish is getting…
1
vote
1 answer

Xero API Error 500 thrown with login / signup

So I've been trying to learn to connect my asp.net application with the Xero API and then downloaded their XeroOAuth2Sample: https://github.com/XeroAPI/xero-netstandard-oauth2-samples/tree/master/XeroOAuth2Sample/XeroOAuth2Sample After inserting my…
zadders
  • 428
  • 1
  • 8
  • 30
1
vote
1 answer

How to set authorization headers for OAuth1.0a

I'm pretty familiar with restAPIs, however this one is giving me a bit of a headache. I'm trying to migrate my OAuth 1.0 tokens into OAuth 2.0 tokens using this documentation https://developer.xero.com/documentation/oauth2/migrate. The request: POST…
Nighthee
  • 1,329
  • 3
  • 13
  • 14
1
vote
1 answer

Retriving Quotes from xero using XeroOAuth-PHP Fetches Every Quote Work Item

I am trying to retrive Quote workitems from xero using XeroOAuth-PHP . I am not allowed to migrate to the latest release xero-php-oauth2 due to some limitations in my company. I already retrieved Invoice workitem from xero using XeroOAuth-PHP I use…
Vignesh A
  • 289
  • 7
  • 19
1
vote
2 answers

Can I override callback url with sub-domain for Xero OAuth2 authentication

I have a Rails App that accesses Xero using new OAuth2 authentication, where we use a sub-domain to isolate different organisations. eg https://domain.example.com To date we have to create a new Xero App for each domain, as we have to specify the…
1
vote
1 answer

How to update invoice using XERO API?

I am using xero api to integrate it with my web app to manage invoices, currently i want to update invoice through invoice id, i have an helper xero.php file to handle crud operations. I have a function get invoice by invoice id, i want to update…
Saad Masood
  • 312
  • 1
  • 2
  • 16
1
vote
1 answer

Xero API Reports endpoints unauthorised

I'm trying to make some GET calls through Postman to the following endpoint: https://api.xero.com/api.xro/2.0/Reports/BalanceSheet getting this…
HarryDev
  • 13
  • 3
1
vote
1 answer

Xero OAuth2 without a server

I have a legacy system that can make get, put and post requests over https I don't have a server running to respond to a callback Has anybody found a solution to getting the verifier and then 'doing' a transaction using only some combination of…
1
vote
0 answers

Laravel calcinai/xero-php openssl_pkey_get_private returned false error

I have integrated calcinai/xero-php for xero Invoice API in Laravel 5.8. But it is throwing me below error: Cannot access private key for signing: openssl_pkey_get_private('file://storage/certs/private.pem') returned false What is the problem?
kinjal jethva
  • 249
  • 2
  • 6
  • 18
1
vote
1 answer

simple xero api oauth2 request

I am trying to perform a simple oauth2 request in PHP for the Xero API. The code request works however when I attempt to request a token I receive the following error: "error":"invalid_client" My header for the token request looks as…
the_big_blackbox
  • 1,056
  • 2
  • 15
  • 35
1
vote
0 answers

Xero SDK Writing Line Item AccountCode to Invoices

I am successfully writing invoices to Xero, including line item information, thus: $products_list[] = array( 'Description' => $product_description, 'Quantity' => (float) $row['Quantity'], …
Andy
  • 11
  • 1
1
vote
2 answers

Xero - oauth flow with zapier

I am investigating adding a webhook in zapier that would use the xero invoicing api to send an invoice. Xero don't have a zapier action to do this. I was thinking of using the oauth-2 beta, but it has a complex flow that isn't ideal for my use case…
Hammer
  • 13
  • 2
1
vote
1 answer

How to distinguish the XERO contacts?

When I hit the XERO API URL - https://api.xero.com/api.xro/2.0/contacts I will get the list of Contacts but I would like to separate these contacts such as Employees, Customers, Suppliers. I have seen in the response these 2 XML tags are exists…