Reports

Pre-built and country-specific financial reports — income, expenses, AR aging, tax compliance.

4 endpoints·Scopes: reports:read, reports:write
GET/api/reports#

List reports

scope · reports:read

Lists reports the caller can see. Results are filtered by the caller's accessible organizations; many routes paginate via page and limit.

Scope: reports:read
Endpoint: GET /api/reports

Example request

curl "https://app.guliel.com/api/reports?organizationId=value" \
  -H "Authorization: Bearer $GULIEL_API_KEY"

Query parameters

  • organizationIdreq
    string
  • type
    string
  • category
    string
  • search
    string

Response (200/201)

  • successreq
    boolean
  • reportsreq
    array<object>Report definitions (name, description, parameters, columns). The full shape lives in src/lib/reports/types.ts:ReportDefinition.
  • organizationCountryreq
    string

Error responses

400Validation
401Unauthenticated
403Forbidden
500Internal
GET/api/reports/{reportType}#

Get a report

scope · reports:read

Fetches a single report by id. Returns 404 if the report isn't in the caller's accessible organizations.

Scope: reports:read
Endpoint: GET /api/reports/{reportType}

Example request

curl "https://app.guliel.com/api/reports/<reportType>?reportType=value" \
  -H "Authorization: Bearer $GULIEL_API_KEY"

Query parameters

  • reportTypereq
    stringReport ID. Use income-register for invoice income and receipt collections in separate columns (no expenses); income-statement includes expenses.
  • organizationIdreq
    string
  • startDate
    string <date>Inclusive start date, YYYY-MM-DD. For a calendar month use its first day.
  • endDate
    string <date>Inclusive end date, YYYY-MM-DD. For a calendar month use its last day.
  • customerId
    string
  • currency
    string
  • documentType
    enum<12>
    INVOICE · RECEIPT · INVOICE_RECEIPT · PAYMENT_REQUEST · CREDIT_MEMO · DEBIT_MEMO · PURCHASE_ORDER · PAYSLIP · FINE_NOTICE · CHARGE_CONFIRMATION · STATEMENT · SUMMARY
  • status
    enum<8>
    DRAFT · UNSENT · SENT · PAID · PENDING_REVIEW · APPROVED · REJECTED · INVOICED
  • limit
    integer
  • sortBy
    string
  • groupBy
    string
  • locale
    enum<2>PDF language: he (Hebrew, RTL) or en (English). Defaults to Hebrew for Israel, English elsewhere.
    he · en

Response (200/201)

  • successreq
    boolean
  • datareq
    objectGenerated report data — rows, totals and summaries vary by report type. Discover report-specific parameters with the schema tool.

Error responses

400Validation
401Unauthenticated
403Forbidden
500Internal
GET/api/reports/{reportType}/pdf#

List pdf for a report

scope · reports:read

Returns every pdf row associated with the given report.

Scope: reports:read
Endpoint: GET /api/reports/{reportType}/pdf

Example request

curl "https://app.guliel.com/api/reports/<reportType>/pdf?reportType=value" \
  -H "Authorization: Bearer $GULIEL_API_KEY"

Query parameters

  • reportTypereq
    stringReport ID. Use income-register for invoice income and receipt collections in separate columns (no expenses); income-statement includes expenses.
  • organizationIdreq
    string
  • startDate
    string <date>Inclusive start date, YYYY-MM-DD. For a calendar month use its first day.
  • endDate
    string <date>Inclusive end date, YYYY-MM-DD. For a calendar month use its last day.
  • customerId
    string
  • currency
    string
  • documentType
    enum<12>
    INVOICE · RECEIPT · INVOICE_RECEIPT · PAYMENT_REQUEST · CREDIT_MEMO · DEBIT_MEMO · PURCHASE_ORDER · PAYSLIP · FINE_NOTICE · CHARGE_CONFIRMATION · STATEMENT · SUMMARY
  • status
    enum<8>
    DRAFT · UNSENT · SENT · PAID · PENDING_REVIEW · APPROVED · REJECTED · INVOICED
  • limit
    integer
  • sortBy
    string
  • groupBy
    string
  • locale
    enum<2>PDF language: he (Hebrew, RTL) or en (English). Defaults to Hebrew for Israel, English elsewhere.
    he · en

Response (200/201)

JSON object. The exact response shape is being progressively documented — call the endpoint with a real access token to see the live structure, or check the type definitions exposed by the official client libraries.

Error responses

400Validation
401Unauthenticated
403Forbidden
500Internal
GET/api/reports/{reportType}/schema#

List schema for a report

scope · reports:read

Returns every schema row associated with the given report.

Scope: reports:read
Endpoint: GET /api/reports/{reportType}/schema

Example request

curl "https://app.guliel.com/api/reports/<reportType>/schema?reportType=value" \
  -H "Authorization: Bearer $GULIEL_API_KEY"

Query parameters

  • reportTypereq
    string
  • organizationIdreq
    string

Response (200/201)

  • successreq
    boolean
  • definitionreq
    objectReport definition (name, description, columns, parameters). See src/lib/reports/types.ts:ReportDefinition for the full shape.

Error responses

400Validation
401Unauthenticated
403Forbidden
500Internal