Billing API
Use the Billing API to discover plans, inspect a team’s subscription, manage adjustable product quantities, change plans, and inspect wallet activity.
Base URL
The Billing API has its own base URL. Do not prefix its routes with the main API’s /api/v2 path.
Authentication and access
The plan list and plan detail endpoints are public. Every team-specific endpoint requires a standard Resemble API key:
For protected requests:
- The API key must belong to an administrator of the current team.
- Customers on custom billing arrangements may not have access to team-specific Billing API endpoints.
Billing API keys are secrets intended for server-to-server integrations. Never put an API key in frontend JavaScript, a mobile app, or another environment where customers can extract it.
Resources
Money and quantities
Monetary fields ending in _cents are expressed in the smallest US-dollar unit. For example, 5000 cents is $50.00. Some responses also include a corresponding _dollars field for display.
Product quantities are absolute totals. For example, sending new_quantity: 5 sets the product’s subscription quantity to five; it does not add five to the existing quantity.
Common responses
Customers on custom billing arrangements may receive:
An invalid explicit Bearer token is authoritative: the API returns 401 Unauthorized rather than falling back to a browser session.
