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
0 answers

Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: (XeroAPI)

Having an issue with the XERO API when trying for the first time. This is with a clean LAMP install with SSL certificate in place. When I go to authorization.php it takes me to Xero to authenticate and then back to callback.php with the following…
0
votes
1 answer

Creating Contact in xero from java code gives Bad Request

Below are logs which i got the error while creating contact in xero as i want to create multiple contact in xero i writing the api but i got the below error if i send the same request in postman it is working…
0
votes
1 answer

Create a contact in Xero and get its contact Id using php api (oauth2)

Just learning Xero API (php) but I'm unsure how to proceed. The docs are pretty good in general. I've successfully created the oauth2 integration and this connects no problem (even for multiple organisations/tenants), I'm able to get the existing…
ThurstonLevi
  • 664
  • 13
  • 34
0
votes
1 answer

Xero API: Getting an error "The PurchasesAccountId account is invalid" when creating new Items

Im just trying to create new items, just copied the syntax on your sample app, but i cant seem to create new Items, I dont see exactly whats the error, thanks for the help in advance! Take note that I am using a trial xero account, not sure if thats…
frost kazuma
  • 350
  • 1
  • 8
  • 24
0
votes
1 answer

Setting Sales Tracking Category on Contact

While I can set a Sales Setting/Category for a Contact through the UI, I can't seem to do this via the Calcinai PHP library. I'm using v1.x at the moment and have done for other Contact creates/updates for a couple of years now. Firstly, should it…
0
votes
1 answer

OAuth2 Failing at consent stage

I have been happily using the xoauth client to negotiate PKCE grants flows up to earlier today. Tokens were obtained and refreshed, all was looking fine until I needed to amend my scopes and needed to re-consent. Now I receive an error on the…
0
votes
1 answer

Getting com.xero.api.XeroApiException: Unauthorized error when trying to create/update invoices

I'm using Xero-Java and I'm trying to push invoices to Xero. The scopes I requested in the Ouath2 authorization…
0
votes
1 answer

Cant disconnect from xero using xero.disconnect

Im using AdonisJs as my Node Framework, the xeroclient config works perfectly, I can extract details that I need. I just cant disconnect, as I saw in their sample app we just have to call xero.disconnect, yet i am receiving an error xero.disconnect…
frost kazuma
  • 350
  • 1
  • 8
  • 24
0
votes
0 answers

Xero API Integration with no user interface (machine-2-machine)

I am trying to integrate Xero API to post invoice from my web application (internal operation). According to latest API articles, there is only way to integrate it using "machine to machine" solution which is described here…
0
votes
1 answer

Xero Oauth 2 - You don't have access to connect any WorkflowMax accounts

I'm trying to connect WorkflowMax to my application and it's throwing the error "You don't have access to connect any WorkflowMax accounts". Here's the server side code (NodeJS): const oauth2 = simpleOauthModule.create({ client: { id:…
Casey Gibson
  • 2,577
  • 1
  • 20
  • 23
0
votes
1 answer

XeroAPI - Get Invoice shared link

I am not able to see the shared Invoice URL anywhere in the API response. Is there any additional scope to be added so I can receive the URL? It's not included in the API response.
Momondo
  • 306
  • 1
  • 2
  • 10
0
votes
2 answers

XeroAPI - Invoice Attachment access forbidden

Stack: Laravel, XeroPHP I cannot access the Invoice attachments because I am getting a ForbiddenException: You are not permitted to access this resource I am already connected to the API and I am fetching the Invoice data but when I call the…
Momondo
  • 306
  • 1
  • 2
  • 10
0
votes
2 answers

Create new invoice in XERO after deal was won on MONDAY

Want to create a new invoice in XERO automatically after a deal was won on Monday.com The problem is that can't find a specific event for this on Zapier. Or maybe it's possible to do this in any other way?
adelak
  • 647
  • 4
  • 11
  • 25
0
votes
0 answers

Xero CIS Contact Settings

How do I create the CISSettings in a Contact via the API? I tried using the endpoint : POST https://api.xero.com/api.xro/2.0/Contacts/xero-contact-id/CISSettings { "CISSettings": [ { "CISEnabled": true, "Rate": 20.0 } …
0
votes
1 answer

Xero - Get contacts simple API call

I'm new to Xero development. I'm trying to make a simple API call to get all contacts from my clien't account. I don't have the login details (user name & password) for the clien't account but I do have the Xero code from client which they have…
chamara
  • 12,649
  • 32
  • 134
  • 210