Finance

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.

ResourceMethod and pathScopePurpose

invoices

GET /invoices, GET /invoices/:id

invoice:read

Read invoices

invoices

POST /invoices

invoice:create

Create a draft invoice

recurring-invoices

GET /recurring-invoices, GET /recurring-invoices/:id

recurring-invoice:read

Read recurring invoices

credit-notes

GET /credit-notes, GET /credit-notes/:id

credit-note:read

Read credit notes

expenses

GET /expenses, GET /expenses/:id

expense:read

Read expenses

items

GET /items, GET /items/:id

item:read

Read items

A draft, and only a draft.

  • POST /invoices fields: 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, dueOn and notes only.

  • Not accepted: any other field. An amount, a number or a status cannot be set over the API.

  • The route refuses Idempotency-Key with 400 invalid_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.

bash
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.

bash
curl "https://app.terania.ai/api/v1/invoices?limit=50" \
  -H "Authorization: Bearer $TERANIA_KEY"

The edges.