+
+
+
await xero.setTokenSet(tokenSet);
+
+const subscriptionId = '00000000-0000-0000-0000-000000000000';
+const subscriptionItemId = '00000000-0000-0000-0000-000000000000';
+const usageRecordId = '00000000-0000-0000-0000-000000000000';
+
+try {
+ const response = await xero.accountingApi.putUsageRecords(subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord);
+ 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}`);
+}
+
+
+