The AVS Invoice API
A token-authenticated REST API spanning 33 resources and 202 endpoints across your organization's invoices, customers, inventory, and purchases.
GET
/api/v1/invoicescurl "https://pre-invoice.avscorp.in/api/v1/invoices" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"success": true,
"data": [
{
"id": "clx2inv001000000000000001",
"organizationId": "clx2org001000000000000001",
"invoiceNumber": "INV-2026-0102",
"customerId": "clx2cus001000000000000001",
"salesOrderId": null,
"salespersonId": null,
"status": "SENT",
"invoiceDate": "2026-09-07T00:00:00.000Z",
"dueDate": "2026-10-07T00:00:00.000Z",
"sellerLegalName": "AVS Textiles Pvt Ltd",
"sellerGstin": "27AAAAA0000A1Z5",
"sellerStateCode": "27",
"placeOfSupplyStateCode": "27",
"currencyCode": "INR",
"exchangeRate": 1,
"subTotal": 13000,
"discountTotal": 0,
"documentDiscount": 0,
"documentDiscountIsPercent": false,
"cgstTotal": 1170,
"sgstTotal": 1170,
"igstTotal": 0,
"adjustmentLabel": null,
"adjustmentAmount": 0,
"roundOff": 0,
"total": 15340,
"amountPaid": 0,
"balanceDue": 15340,
"warehouseId": "clx2wh0001000000000000001",
"ewayBillStatus": "NOT_REQUIRED",
"ewayBillId": null,
"emailSentAt": null,
"pdfTemplateId": null,
"notes": "Thank you for your business",
"termsAndConditions": null,
"createdBy": "clx2usr001000000000000001",
"updatedBy": null,
"createdAt": "2026-09-07T10:00:00.000Z",
"updatedAt": "2026-09-07T10:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 1,
"hasMore": false
}
}Resource areas
Identity
Who-am-I, organization membership, the live scope catalog, and OAuth2 token issuance/revocation.
Dashboard
Dashboard, Search
Customers
Customers, Customer Contacts, Customer Ledger
Vendors
Vendors, Vendor Ledger
Inventory
Tax Rates, Currencies, Payment Terms, Accounts, Items, Item Groups, Warehouses, Price Lists, Number Series, Inventory
Purchases
Expenses, Debit Notes, Bills, Purchase Orders
Sales
Quotes, Sales Orders, Credit Notes, Payment Claims, Online Payments, Leads & Pipeline
Payments
Payments Made, Payments Received
Invoices
Customer invoices — the one fully write-enabled sales document in the API.
Approvals
Manager sign-off above org-configured limits (discount %, credit, PO total, expense amount). A document that needs approval can't be finalised: writes return 409 approval_required with the reasons, or hold it when the body has submitForApproval: true.
Reports
The reports hub, the table, chart and GST filing reports and their PDF, CSV and GSTN JSON exports, with the same filters, hidden cost columns, 2,000-row cap, totals and insight as the web.