+
+
+
await xero.setTokenSet(tokenSet);
+
+const xeroTenantId = 'YOUR_XERO_TENANT_ID';
+const batchPaymentID = '00000000-0000-0000-0000-000000000000';
+
+try {
+ const response = await xero.accountingApi.getBatchPayment(xeroTenantId, batchPaymentID);
+ 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}`);
+}
+
+
+