invoiceahoy
v1.1.12
Published
Node.js library for the InvoiceAhoy API
Downloads
4
Readme
InvoiceAhoy Node.js SDK
Node.js library for the InvoiceAhoy API.
Install
npm install invoiceahoy
# or
yarn add invoiceahoy
Examples
TBC
Setup
First, you need to get an API key, which is available in the InvoiceAhoy Dashboard.
import { InvoiceAhoy } from 'invoiceahoy';
const invoiceahoy = new InvoiceAhoy('ia_123456789');
Usage
Create
Create your first invoice:
await invoiceahoy.invoices.create({
reference: "INV-0001",
...
});
Send
Sends an invoice to the customer via email.
await invoiceahoy.invoices.send('inv_w3e4r5678', {
to: `[email protected]`,
subject: `Thanks for your order!`,
});
License
MIT License