invoiceahoy
TypeScript icon, indicating that this package has built-in type declarations

1.1.12 • Public • Published

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: `customer@example.com`,
  subject: `Thanks for your order!`,
});

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i invoiceahoy

Weekly Downloads

0

Version

1.1.12

License

MIT

Unpacked Size

21.7 kB

Total Files

28

Last publish

Collaborators

  • checkoutjoy