Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
ReferenceBeta

Billing API reference

How the Billing reference is organized: one page per topic for plans, subscriptions, balances, submissions, invoices, and audit events.

The Billing API reference documents every public operation and type of Billing, grouped into one page per topic. Each page covers its queries and mutations, its object and input types, and its enums, with a field table for every type.

The reference states what each operation and field is. For the GraphQL fundamentals behind the notation, see GraphQL basics, including the type syntax that the field tables use.

Where the operations live

All Billing queries and mutations are nested under the billing field of the Query and Mutation types, and every response has the same shape under data.billing.

Every operation is one of the my* operations, named with the prefix my: it acts in the workspace named by your access token and takes no workspace argument. The audit queries with scope: ORGANIZATION act in the token's organization instead. Navixy products report usage to Billing outside this API, and the submission queries list what they reported for your workspace.

For a workspace token, node(id:) returns null for billing types other than the 2 submission types, and for a submission of another workspace. Read them through the queries on these pages.

Pages

Page
Covers

The plans and branches your workspace may subscribe to (BillingAvailablePlan, BillingAvailablePlanItem), the myAvailablePlans query that lists them with the subscription you already have on each, and the catalog and pricing vocabulary a plan is built from: BillingProductDomain, BillingMetric, BillingPricingModel, BillingAggregationFunction, BillingUsagePricing, and BillingUsagePricingTier.

The mySubscribe mutation and the mySubscriptions query, with BillingWorkspaceSubscription, its filter and order inputs, and its pagination types.

Your workspace's prepaid balance (BillingBalance), the statement entries that changed it (BillingBalanceEntry), and the myBalance and myBalanceEntries queries.

The usage-metric and invoice-line-item submissions reported for your workspace (BillingUsageMetricSubmission, BillingInvoiceLineItemSubmission), and the myUsageMetricSubmissions and myInvoiceLineItemSubmissions queries that list them, with their filter and order inputs.

Your workspace's invoices (BillingWorkspaceInvoice) with their lines (BillingWorkspaceInvoiceLineItem), and the myInvoice and myInvoices queries that read them, with their filter and order inputs.

The audit events of billing in your workspace, and the myAuditEvents and myEntityHistory queries that read them. The event, filter, and order types are on the Business Data Repository Audit page.

Shared types

The scalars, interfaces, and pagination types that Billing shares with the other products are on the Common resources page. Billing also uses the Money value type and the Currency scalar from that page. The usage prices of a plan (BillingUsagePricing.price and the price of a tier) are Long values in minor currency units; the period fee, balances, and invoice line items use Money. The Core API reference indexes the reference pages of every product.

How the reference pages are structured

Every page follows the same order: queries, then mutations, then the page's objects, inputs, and enums, with pagination types in a section of their own at the end. Field tables use the GraphQL type notation, where ! marks a value that is never null and [...] marks a list: see Type syntax.

Other ways to explore the API

See also

  • Pagination: Learn how the connection types on these pages page through results.

  • Error handling: Understand error structure, codes, and common error scenarios.

Last updated

Was this helpful?