Dashboard

Mobile dashboard summaries, built on the same aggregations as the web dashboard.

GET/api/v1/dashboard/receivables

Get the receivables summary

Scope: invoices.read

Total outstanding, overdue amount, and an aging breakdown across open invoices (SENT, PARTIALLY_PAID, OVERDUE).

Example request

curl "https://pre-invoice.avscorp.in/api/v1/dashboard/receivables" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

JSON
{
  "totalOutstanding": 260000,
  "overdueAmount": 87000,
  "openingBalance": 15000,
  "aging": [
    {
      "bucket": "Current",
      "amount": 158000
    },
    {
      "bucket": "1-30d",
      "amount": 42000
    },
    {
      "bucket": "31-60d",
      "amount": 25000
    },
    {
      "bucket": "61-90d",
      "amount": 12000
    },
    {
      "bucket": "90+d",
      "amount": 8000
    }
  ]
}

Possible errors: unauthorized, insufficient_scope, forbidden

GET/api/v1/dashboard/collections

Get today's and this month's collections

Scope: paymentsReceived.read

Payments received dated today, and from the 1st of this month through today. Days are India's calendar days; post-dated payments are not counted. Follows the member's own-customer scope.

Example request

curl "https://pre-invoice.avscorp.in/api/v1/dashboard/collections" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

JSON
{
  "date": "2026-11-24",
  "today": 12500,
  "thisMonth": 184000.5
}

Possible errors: unauthorized, insufficient_scope, forbidden