API reference
A REST API with predictable, resource-oriented URLs, form-encoded requests, and JSON responses. Base URL https://api.ledgerline.dev. Every example below is live against your test key.
Authentication
Authenticate with your secret key via HTTP basic auth. Provide the key as the username; no password is needed. Keep sk_live_… keys server-side only.
Invoices
POST/v1/invoices
Create an invoice.
| customer_emailstring | Recipient email. |
| line_items[]array | description + amount (cents). |
cURLNodePython
GET/v1/invoices
List invoices, newest first. Supports limit.
cURLNodePython
GET/v1/invoices/:id
Retrieve a single invoice.
cURLNodePython
Payment Links
POST/v1/payment_links
Create a shareable checkout link.
cURLNodePython
GET/v1/payment_links
List your payment links.
cURLNodePython
Events
GET/v1/events
List events, newest first. This is the stream the dashboard renders.
cURLNodePython
✦
Eight endpoints power the whole product: create / list / retrieve invoices, create / list payment links, list events, plus the hosted pay + checkout actions. Start with the quickstart →