Reference: finance
Five resources. One write. The finance API reads invoices, recurring invoices, credit notes, expenses and items. The only write is POST /invoices, and it creates a draft. Issuing, voiding, writing off and recording payments are not in version 1: do them in the app. There are no delete endpoints. Base URL: https://app.terania.ai/api/v1. See conventions and scopes.
Every path.
| Resource | Method and path | Scope | Purpose |
|---|---|---|---|
invoices |
|
| Read invoices |
invoices |
|
| Create a draft invoice |
recurring-invoices |
|
| Read recurring invoices |
credit-notes |
|
| Read credit notes |
expenses |
|
| Read expenses |
items |
|
| Read items |
A draft, and only a draft.
POST /invoicesfields:customerId,currency,dueOn,notes.The result is a draft. Version 1 has no route to add line items, issue, send, void, write off or record a payment. A person finishes and issues the draft in the app. Create accepts
customerId,currency,dueOnandnotesonly.Not accepted: any other field. An amount, a number or a status cannot be set over the API.
The route refuses
Idempotency-Keywith 400invalid_request. Before you retry a create, read your drafts to check whether the first one landed.Webhook events for the invoice life:
saas.invoice.issued,saas.invoice.paid,saas.invoice.overdue,saas.invoice.voided,saas.invoice.written_off,saas.credit_note.issued,saas.payment.recorded. See webhook events.
curl -X POST https://app.terania.ai/api/v1/invoices \
-H "Authorization: Bearer $TERANIA_KEY" \
-H "Content-Type: application/json" \
-d '{"customerId":"CUS_ID","currency":"AUD","dueOn":"2026-12-14","notes":"Sample draft for INV-0042"}'Four you can read and not change.
Recurring invoices: read the schedules. They are created in the app.
Credit notes: read issued credit notes. Learn of a new one through
saas.credit_note.issued.Expenses: read expenses. A key issued by a member is refused: 403 on the list and 404 on a single expense. Keys issued by an admin or owner read the company's expenses.
Items: read the item catalogue.
curl "https://app.terania.ai/api/v1/invoices?limit=50" \
-H "Authorization: Bearer $TERANIA_KEY"