xero-api

xero API : Struggling to add a basic invoice

丶灬走出姿态 提交于 2021-01-28 05:07:16
问题 Updated to show new code / new error @ 10/12/2020 11:30 I need to copy invoices from my website to xero using their API. I managed to get this working using the OAuth 1 but now need to update to OAuth2.0. I've installed xero-php-oauth2-starter which connects and works fine with the examples. e.g. if I click the example "Create one Contact" link, the demo contact is created in xero. As such, I know the link is working. I've been looking around trying to find an example of how to create an

API OAuth 2.0 - XERO acces with R receiving status 400

瘦欲@ 提交于 2020-12-15 06:42:01
问题 We have to migrate to Oauth 2.0. However, I am facing the following issues. Status 400 I believe due to some parameters that may not be entered right. If anyone know what could be wrong or have any idea please let me know. and this is my code: pack <- c('curl','xml2','XML', 'plyr', 'dplyr','tidyr', 'httr', 'tools', 'lubridate', 'jsonlite', 'stringr', 'data.table', 'anytime') sapply(pack, function(x){ if(!require(x,character.only = T, quietly = T)) {install.packages(x, quiet = T)} require(x,

API OAuth 2.0 - XERO acces with R receiving status 400

最后都变了- 提交于 2020-12-15 06:40:05
问题 We have to migrate to Oauth 2.0. However, I am facing the following issues. Status 400 I believe due to some parameters that may not be entered right. If anyone know what could be wrong or have any idea please let me know. and this is my code: pack <- c('curl','xml2','XML', 'plyr', 'dplyr','tidyr', 'httr', 'tools', 'lubridate', 'jsonlite', 'stringr', 'data.table', 'anytime') sapply(pack, function(x){ if(!require(x,character.only = T, quietly = T)) {install.packages(x, quiet = T)} require(x,

creating an invoice using OAuth2 in xero

让人想犯罪 __ 提交于 2020-06-29 07:49:06
问题 I am following along with the code samples provided here - https://github.com/XeroAPI/xero-php-oauth2/blob/master/docs/Api/AccountingApi.md#createInvoice However, i am always receiving the following error message: "ErrorNumber": 17, "Type": "NoDataProcessedException", "Message": "No data has been processed for this endpoint. This endpoint is expecting Invoice data to be specifed in the request body." Any ideas why this is the case. I have added quotes around the $invoice data Code below: <

add an attachment in Xero using php Xero api

醉酒当歌 提交于 2020-06-29 06:39:17
问题 Can anyone help me add a pdf to a Xero Invoice using the official (non calcanai) PHP SDK. I'm connected with oAuth2 and have previously created a draft invoice. I then update the invoice to Authorised and try to add an attachment to the invoice. At this point I am not getting any luck, the attachments is sent but comes back in the respose as null. The docs are not at all useful and do not give any examples of adding an attachment or even minimal fields. So this is what I have: ...

Integration Xero in ReactJS application causes errors

混江龙づ霸主 提交于 2020-03-23 08:01:06
问题 I am working on a Xero integration and am having some issues setting up the XeroClient from the SDK. We are currently working in a React app written with Typescript. Currently I am importing Xero SDK like this: import { XeroClient } from 'xero-node'; And defining the client like this: const xero = new XeroClient({ clientId: client_id, clientSecret: client_secret, redirectUris: [redirectUri], scopes: scopes.split(' '), }); Xero-node version: 4.0.6 React version: 16.12.0 But when compiling the

Integration Xero in ReactJS application

陌路散爱 提交于 2020-02-29 06:48:24
问题 We are having a ReactJS application and wants to integrate XERO accounting software. Basically what we need is to fetch the customers list from xero and display it on the web application What should be the approach that needs to be followed here? Can we do the api call from the front end like what we do for https://www.npmjs.com/package/react-google-login ? or do we need to make the api call from the server side? Any help would be much appreciated. 来源: https://stackoverflow.com/questions

Xero API - Bank transactions missing

依然范特西╮ 提交于 2020-01-06 05:56:52
问题 The Xero API doesn't seem to return all bank transactions through the bank transactions endpoint. At least some transactions that are attached to payments and transfers don't seem to be returned. Is there a way around this? 回答1: I had the same problem and here is what I got from Xero support: There are some differences between the BankTransactions API endpoint and the Bank >Transactions screen in the UI. Most importantly the endpoint does not return payments applied to invoices, expense

Connect Azure Website to Xero Partner Application

别来无恙 提交于 2019-12-21 11:01:21
问题 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 Azure Web App. I've uploaded two pfx files; one is a self-signed certificate and the other is the partner certificate issued by Xero. The latter pfx file contains two certificates; an Entrust Commercial Private Sub CA1 (whatever than means) and a