Request Usage-By-Sub-Account Report
lyzr_report_usage_by_sub_accountRequest an asynchronous usage report per sub-account. Use the returned job ID to poll for report status.
Instructions
Request an async usage report broken down by sub-account. Returns a job_id; poll with lyzr_report_get_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date (YYYY-MM-DD), required when timeframe is 'custom' | |
| group_by | No | Optional row-splitting dimension: 'month' splits by calendar month, 'billing_cycle' splits by the org's subscription cycle. Omit for a single aggregated row per entity. | |
| timeframe | Yes | Timeframe preset for the report window. Use 'custom' with start_date/end_date. | |
| start_date | No | Start date (YYYY-MM-DD), required when timeframe is 'custom' | |
| sub_org_id | No | Narrow to a single sub-account's organization_id |