createFeedConnections
Create one or more new feed connection
By passing in the FeedConnections array object in the body, you can create one or more new feed connections
/FeedConnections
Usage and SDK Samples
await xero.setTokenSet(tokenSet);
const xeroTenantId = 'xeroTenantId_example';
const idempotencyKey = 'KEY_VALUE';
try {
const response = await xero.accountingApi.createFeedConnections(xeroTenantId, feedConnections, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
console.log(`Status Code: ${err.response.statusCode} => ${error}`);
}
Scopes
bankfeeds | Grant read-write access to bankfeeds |
Parameters
Name | Description |
---|---|
Xero-Tenant-Id* |
String
Xero identifier for Tenant
Required
|
Idempotency-Key |
String
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
Name | Description |
---|---|
feedConnections * |
FeedConnections
Feed Connection(s) array object in the body
Required
|