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

How can I identify event called via user OR system generated, If I checked on generated text file from xero webhooks using PHP?

I integrated Xero with webhook on my system. Every invoice-related change or create a new invoice then a new generated text file. How can I identify transaction was generated by the system(via Xero application login) OR via integrated API from my…
0
votes
0 answers

IncludeOnline=true option doesn't work when uploading attachment to Xero via API

IncludeOnline=true option doesn't work when uploading invoice attachment to Xero via API. This is the doc: https://developer.xero.com/documentation/api/accounting/attachments/#post-attachments And this the option I need to be turned on after I…
Anton
  • 1
  • 2
0
votes
0 answers

Accounts returned from API endpoint are different than the Xero GUI while creating invoice

i am working on developer API's in Xero, but i got almost 8 more items in "https://api.xero.com/api.xro/2.0/Accounts" endpoint than the Xero GUI dropdown. Xero is not adding system accounts in dropdown except (960, 820,840,860, and 499). how can I…
0
votes
1 answer

Access Denied error during step 1 of Xero API OAuth2 standard authorization code flow

I have an existing Xero app that's worked well for over a year that uses OAuth2 to connect a small number of organisations to one of three Web Apps: developer, sandbox, and production. Sandbox and production are working well. However, yesterday I…
0
votes
1 answer

xero-api Not able to create bank transaction. Error with the account code

We are trying to create a bank transaction through the Xero API: Here is the curl statement: curl --location --request POST 'https://api.xero.com/api.xro/2.0/BankTransactions' \ --header 'Authorization: Bearer ' \ --header 'Xero-Tenant-Id: '…
Nir
  • 1
0
votes
0 answers

XeroApi missing ability to assign TaxNumberType

We update user's contact information from our site, and use the TaxNumber field. I assume it guesses the TaxNumberType, a field available in the user UI, based on the format of the value passed in. We have people change from using SSN to EIN because…
Ryan H
  • 547
  • 1
  • 6
  • 18
0
votes
0 answers

Always showed Intent to receive required on Xero Webhooks and not x-xero-signature header not matched [RUBY]

When a click on Intent to Receive then it always showed me same like Intent to Received required, not showed 200 OK. Method for ensuring_security is: def ensuring_security? key = 'XERO_WEBHOOK_KEY' payload = request.body.read …
0
votes
0 answers

API response different from response in API Explorer

I am using the Xero python SDK (version 1.18.0) and when I execute the create_pay_item() function, I don't get the same response as I do when running it in the API explorer at https://api-explorer.xero.com/payrollau/payitems/createpayitem. I only…
Bellave Jayaram
  • 366
  • 1
  • 2
  • 11
0
votes
0 answers

AND condition in where clause

I am trying to query the invoices with xero-ruby gem. I need to query with reference. I build the query options as opts = { statuses: %w[PAID DRAFT SUBMITTED AUTHORISED], where: { reference: ["Contains", job.quote_ref] } } But on production it…
Ravi Prakash
  • 123
  • 1
  • 7
0
votes
1 answer

PHP Xero API is creating duplicate overpayment entries (BankTransaction)

We are creating overpayments via the PHP Xero API. In some cases, the overpayments are being duplicated. Here is the code we are using:
jpruizs
  • 485
  • 1
  • 5
  • 19
0
votes
0 answers

Razor Page, object list prop losing all members between RedirectToPage and the OnGet call

I'm using the Xero API to do some calculations on employees. This requires an OAuth2Token, specifically the tenantId and the accessToken. This is gotten by redirecting the user to log in and then providing them with the token The tenantId is a…
0
votes
1 answer

Xero connection limit of 25 connections seems to Include Demo Companies

I am connecting to Xero through their API with OAuth2. In the past I used to create Demo companies on Xero to test the application I was developing. Every time the Demo company expired I created a new one and reconnected to Xero through the API.…
0
votes
0 answers

Xero application limits

Xero documentation says: "Each API response you receive will include the X-DayLimit-Remaining, X-MinLimit-Remaining and X-AppMinLimit-Remaining headers telling you the number of remaining against each limit." How do I access these limits? When I…
0
votes
1 answer

Why is Xero OAUTH api is no longer returning JSON

I had a working Xero API OAUTH integration, which has suddenly stopped working. I'm getting the following error: Error: [UnexpectedValueException] Invalid response received from Authorization Server. Expected JSON. in…
geoidesic
  • 4,649
  • 3
  • 39
  • 59
0
votes
0 answers

Connecting Xero Api to my local in php, I am using local by flywheel

I am not able to successfully run xero oauth2 api on my local. I tried it by reading the documentation and watching a video on youtube by xero developer and I was successfully able to create the button and api on MAMP local server. But when I try to…