Invoicing API · v2

Send an invoice from one POST request.

Ledgerline turns a JSON payload into a sent, tracked, tax-correct invoice — PDF, payment link, reminders, and reconciliation included. You write one request; the ledger stays clean.

create-invoice.sh200 OK
$ curl -X POST https://api.ledgerline.dev/v2/invoices \
  -d '{
    "customer": "cus_9f2k",
    "amount": "1450.00",
    "currency": "USD",
    "due": "net-14"
  }'

 {
  "id": "inv_04hd",
  "status": "sent",
  "pdf": "https://…/inv_04hd.pdf",
  "pay_link": "https://pay.ledgerline.dev/04hd"
}
Reminders

Late invoices chase themselves.

Set a reminder schedule once — net-14, +3, +10 — and Ledgerline sends the nudges, escalates the tone, and stops the moment payment lands.

Tax

Rates resolved per line.

VAT, GST, and US sales tax resolved from the customer's address at send time.

Webhooks

Every state change, pushed.

invoice.viewed, invoice.paid, invoice.overdue — signed and replayable.

Quickstart

Install, key, send. That's the tour.

npm i @ledgerline/sdk — then one function call from your app. The first fifty invoices each month are on us.

Reconcile

Payments matched to the ledger.

Stripe and bank-transfer payments matched to open invoices automatically.

Exports

Your accountant gets CSV.

Period exports that map to the ledger, not to our UI.

Pricing is below, in numbers — see the two tiers →

Quickstart

Ninety seconds to your first sent invoice.

Install the SDK, paste your test key, call one function. The sandbox sends a real PDF to your own inbox so you can see exactly what your customer gets.

# 1 · install
$ npm i @ledgerline/sdk
# 2 · authenticate
$ export LEDGERLINE_KEY=test_…
# 3 · send
$ node -e "require('@ledgerline/sdk').invoices.create({...})"
# → inv_04hd · status: sent · pdf in your inbox
Pricing

Two tiers. Actual numbers.

Builder
$0
50 invoices / month, forever
  • Full API + SDK
  • Sandbox + test keys
  • PDF + payment links
  • Community support
Ship
$29
per month · unlimited invoices
  • Everything in Builder
  • Reminder schedules + escalation
  • Webhooks, signed + replayable
  • Reconciliation + CSV exports