Accounting API

List and create invoices, record payments and log expenses.

  • Reference
  • 2 min read
  • Updated 13 November 2026
View as Markdown

Accounting endpoints are under /api/accounting. They need the Authorization and X-Organization-Id headers.

#Invoices

#Create an invoice

Request
curl -X POST https://api.aozo.in/api/accounting/invoices \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Organization-Id: $ORG" \
  -H "Content-Type: application/json" \
  -d '{
    "customerName": "Sharma Traders",
    "customerGstin": "27ABCDE1234F1Z5",
    "dueDate": "2026-12-05",
    "items": [
      { "itemName": "Annual plan", "hsnCode": "998314", "quantity": 1, "unitPrice": 41101, "gstRate": 18 }
    ]
  }'

AOZO works out the subtotal, the tax and the total from your lines, and numbers the invoice using your invoice prefix.

#Record a payment

Body for POST /api/accounting/invoices/:id/payments
{ "amount": 20000, "paymentMode": "UPI", "referenceNo": "UPI-884213" }

#Expenses

Body for POST /api/accounting/expenses
{ "category": "Travel", "description": "Client visit, Pune", "amount": 3200, "date": "2026-11-10", "paymentMode": "UPI" }

Items, customers, quotations, pro-forma invoices, credit notes, sales orders, delivery challans and reports are also available under /api/accounting.

Heads up

Please confirm GST rates and your invoice details with your accountant before you automate invoicing.