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
1 answer

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 "You cannot have multiple line items with the same…
1
vote
0 answers

New API update is returning codes BADDEBT, CAPIMPORTS, CIUINPUT which do not match the API statuses for TaxType or ReportTaxType

In our live enivonment when we're getting tax rates for some of our customers, we're getting at least 3 codes back (BADDEBT, CAPIMPORTS, CIUINPUT) which do not map up to either…
1
vote
1 answer

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 (node module) const XeroClient =…
Jim Dover
  • 593
  • 2
  • 12
  • 30
1
vote
1 answer

Xero API - How to specify page size in the pagination

According to the docs: https://developer.xero.com/documentation/api/requests-and-responses If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this…
Momondo
  • 306
  • 1
  • 2
  • 10
1
vote
0 answers

Xero-Api PKCE authorization returns 'Invalid_grant'

I'm following the instruction here at https://github.com/XeroAPI/Xero-Postman-Tutorial-PKCE-Edition to integrate with Xero. On step 7 'Receive and Set your Access and Refresh Tokens', I get 'Invalid_grant' message. Authorization with Xero works well…
1
vote
1 answer

Xero API authentication without OAuth2

The scenario So I am building an app that should display data from my Xero account to the users. Users should not be able to login via OAuth2 to my web app so that's why I need persistent auth token that is independent from the users login. The…
Momondo
  • 306
  • 1
  • 2
  • 10
1
vote
1 answer

Xero API: by pass 1st time "login and select organisation" pop up

Anyway Xero API OAuth 2.0 call can by pass or background handle the 1st time "Pop up ask for login and select organisation"? to allow more seamless/ silent API call?
WenLiang
  • 11
  • 1
1
vote
1 answer

Xero Accounting Sdk Core: authentication error

I'm implementing an internal procedure to generate invoices from my database. In using .NET Core. I installed the Xero.Api.SDK.Core v. 1.1.4 I find the Xero documentation quite difficult to understand and a bit up to date. I took a look to the…
Enrico
  • 3,592
  • 6
  • 45
  • 102
1
vote
0 answers

How to filter timesheets xero uk with startDate and endDate?

Im implementing xero uk in my projects and i want to filter timesheets with startDate and endDate In documentation i see that i can filter with Filter by employeeId and payrollCalendarId ex of the get api that i want to work :…
Dard
  • 11
  • 1
1
vote
0 answers

Xero OAuth 2.0 tenants list

I have come across the following scenario during testing. User A logs into my app and connects to Xero Company A. Going through OAuth 2.0 (offline) I get a list of tenants which only contains Company A. Can use that tenant ID all good. User B logs…
Jeremy
  • 11
  • 1
1
vote
1 answer

Xero OAuth 2.0 API - c# dotnet core - unauthorised when upload attachment to invoice - other requests fine

I have a dotnet core web app that uses the xero OAUTH2 invoice just fine to add invoices and query data. But when I try to upload an attachment I get a 401 unauthorised response. Here's the code with the issue if (timeRecordAttachment != null) { …
1
vote
2 answers

Add attachments to Invoices in Xero using node js SDK or API

I am trying to add attachments to existing invoices in xero. I am using xero-node sdk (https://github.com/XeroAPI/xero-node#readme) for this integration and they provide a method for adding attachment as…
Faizal
  • 41
  • 6
1
vote
1 answer

To manage Xero/Quickbooks/Plooto staff members through api endpoints/SDK/third party apps

I want to change below things via API, plugin, extension etc 'Client access' for any user of quickbooks application 'Edit Payees', 'Edit Banks', 'Edit users', 'Edit Payments' & 'Edit Company Details' checkboxes of various clients for any user for…
1
vote
1 answer

XERO PHP API attach file to Invoice - file not included on send

I am working on integrating a custom PHP system with XERO and I can create invoices, etc. Now we need to attach some files to the invoice. The PHP API examples do not have a function for this, only a function to attach a file to an account, so I…
AndreT
  • 11
  • 3
1
vote
1 answer

xero.apiCallback is not a function

I am getting an error in my xero code. It says, xero.apiCallback is not a function. The other functions in xero seems to work. Here is my code: require('dotenv').config(); const express = require('express'); const XeroRouter =…
Redd Panes
  • 13
  • 2