@robinpath/xero
v0.1.1
Published
Xero module for RobinPath.
Downloads
148
Readme
@robinpath/xero
Xero module for RobinPath.
Why use this module?
The xero module lets you:
- listInvoices
- getInvoice
- createInvoice
- updateInvoice
- sendInvoice
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/xeroQuick Start
1. Set up credentials
xero.setCredentials "your-credentials"2. listInvoices
xero.listInvoicesAvailable Functions
| Function | Description |
|----------|-------------|
| xero.setCredentials | Configure xero credentials. |
| xero.listInvoices | listInvoices |
| xero.getInvoice | getInvoice |
| xero.createInvoice | createInvoice |
| xero.updateInvoice | updateInvoice |
| xero.sendInvoice | sendInvoice |
| xero.voidInvoice | voidInvoice |
| xero.listContacts | listContacts |
| xero.getContact | getContact |
| xero.createContact | createContact |
| xero.updateContact | updateContact |
| xero.listAccounts | listAccounts |
| xero.getAccount | getAccount |
| xero.listBankTransactions | listBankTransactions |
| xero.createBankTransaction | createBankTransaction |
| xero.listPayments | listPayments |
| xero.createPayment | createPayment |
| xero.listItems | listItems |
| xero.createItem | createItem |
| xero.getOrganization | getOrganization |
| xero.getReport | getReport |
Examples
listInvoices
xero.listInvoicesgetInvoice
xero.getInvoicecreateInvoice
xero.createInvoiceIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/xero";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
xero.setCredentials "your-credentials"
xero.listInvoices
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/quickbooks— QuickBooks module for complementary functionality@robinpath/freshbooks— FreshBooks module for complementary functionality@robinpath/invoice— Invoice module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
