Legacy BillingQL API
Read-only SQL-like queries for billing data.
Legacy (v1) API. This page describes the Stripe-first legacy API. It is still supported. v2 has its own query routes: POST /api/billstack/v2/teams/{teamId}/stripe-account/query reads the team's synced Stripe account copy with the same datasets, and POST /api/billstack/v2/teams/{teamId}/projects/{projectId}/query reads the project's canonical records (no payments dataset; invoices only where canonical invoices are enabled). See the v2 API.
Use POST /api/billstack/teams/{teamId}/query for team data or
POST /api/billstack/teams/{teamId}/projects/{projectId}/query for project
data. The caller needs query:Execute plus the read permission for every
dataset referenced by the query.
See BillingQL for the language, parameters, limits, and response format.