AOP API/Documents & Invoices
/finance/documentsRecord a new invoice / estimate / note. The core "record financial data" endpoint.
https://api.w3builders.com/v1/finance/documentscurl -X POST https://api.w3builders.com/v1/finance/documents \-H "Authorization: Bearer $TOKEN" \-H "Content-Type: application/json" \-d '{"type": "invoice","client_name": "Acme Co","client_email": "billing@acme.com","client_state": "Maharashtra","line_items": [{"name": "Design retainer","quantity": 1,"rate": 45000,"tax_rate": 18}],"notes": "Thanks for your business!"}'
{"document": {"id": 4821,"number": "INV/2026-27/004","type": "invoice","status": "draft","client_name": "Acme Co","total": 53100,"amount_paid": 0,"amount_due": 53100,"portal_token": "9f2c1a..."}}
curl -X POST https://api.w3builders.com/v1/finance/documents \-H "Authorization: Bearer $TOKEN" \-H "Content-Type: application/json" \-d '{"type": "invoice","client_name": "Acme Co","client_email": "billing@acme.com","client_state": "Maharashtra","line_items": [{"name": "Design retainer","quantity": 1,"rate": 45000,"tax_rate": 18}],"notes": "Thanks for your business!"}'
{"document": {"id": 4821,"number": "INV/2026-27/004","type": "invoice","status": "draft","client_name": "Acme Co","total": 53100,"amount_paid": 0,"amount_due": 53100,"portal_token": "9f2c1a..."}}