Charge subscription usage
Immediately charges usage for a subscription via the billing integration. Calculates usage since the last charge and creates an invoice.
Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Path Parameters
The unique identifier of the entity
1 - 255Body
Request to immediately charge usage for a subscription.
Cutoff date for usage calculation. If not provided, the current time is used.
Response
The charge result including period, invoice ID, and usage details.
Response object
Result of charging subscription usage including the billing period and charged items.
