Reports

Generate financial reports including income, expenses, documents, and VAT (Ma'am) reports.

Use cases: Use reports for monthly bookkeeping, VAT filing preparation, and financial summaries.
POST/reports/income

Generate an income report for a date range.

Body Parameters

NameTypeDescription
startDate
stringrequiredReport start date (YYYY-MM-DD).
endDate
stringrequiredReport end date (YYYY-MM-DD).

Request

curl -X POST "https://api.glance.co.il/reports/income" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "example_startDate",
  "endDate": "example_endDate"
}'

Response

Response
{
  "data": {
    "startDate": "2024-01-01",
    "endDate": "2024-03-31",
    "totalIncome": 125000,
    "totalTax": 18162.39,
    "breakdown": [
      {
        "month": "2024-01",
        "income": 35000,
        "tax": 5085.47
      },
      {
        "month": "2024-02",
        "income": 42000,
        "tax": 6102.56
      },
      {
        "month": "2024-03",
        "income": 48000,
        "tax": 6974.36
      }
    ]
  }
}
POST/reports/expenses

Generate an expenses report for a date range.

Body Parameters

NameTypeDescription
startDate
stringrequiredReport start date (YYYY-MM-DD).
endDate
stringrequiredReport end date (YYYY-MM-DD).

Request

curl -X POST "https://api.glance.co.il/reports/expenses" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "example_startDate",
  "endDate": "example_endDate"
}'

Response

Response
{
  "data": {
    "startDate": "2024-01-01",
    "endDate": "2024-03-31",
    "totalExpenses": 45000,
    "totalTax": 6538.46,
    "totalDeductableTax": 6200,
    "breakdown": [
      {
        "month": "2024-01",
        "expenses": 12000,
        "tax": 1743.59
      },
      {
        "month": "2024-02",
        "expenses": 15000,
        "tax": 2179.49
      },
      {
        "month": "2024-03",
        "expenses": 18000,
        "tax": 2615.38
      }
    ]
  }
}
POST/reports/documents

Generate a documents report with optional type filtering.

Body Parameters

NameTypeDescription
startDate
stringrequiredReport start date (YYYY-MM-DD).
endDate
stringrequiredReport end date (YYYY-MM-DD).
type
stringOptional document type filter.

Request

curl -X POST "https://api.glance.co.il/reports/documents" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "example_startDate",
  "endDate": "example_endDate",
  "type": "example_type"
}'

Response

Response
{
  "data": {
    "startDate": "2024-01-01",
    "endDate": "2024-03-31",
    "totalDocuments": 156,
    "totalAmount": 350000,
    "byType": {
      "invoice": {
        "count": 45,
        "amount": 180000
      },
      "invoiceReceipt": {
        "count": 30,
        "amount": 95000
      },
      "receipt": {
        "count": 40,
        "amount": 75000
      },
      "quotation": {
        "count": 25,
        "amount": 0
      },
      "order": {
        "count": 16,
        "amount": 0
      }
    }
  }
}
POST/reports/maam

Generate a VAT (Ma'am) report for tax filing.

Body Parameters

NameTypeDescription
startDate
stringrequiredReport start date (YYYY-MM-DD).
endDate
stringrequiredReport end date (YYYY-MM-DD).

Request

curl -X POST "https://api.glance.co.il/reports/maam" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "example_startDate",
  "endDate": "example_endDate"
}'

Response

Response
{
  "data": {
    "startDate": "2024-01-01",
    "endDate": "2024-01-31",
    "salesTax": 5085.47,
    "purchaseTax": 1743.59,
    "deductableTax": 1700,
    "netVat": 3385.47,
    "salesTotal": 35000,
    "purchaseTotal": 12000
  }
}