Skip to main content
Admin endpoints are scoped to test-mode keys only (sk_test_). They’re not available in production. Calling them with a live key returns 403 Forbidden.

GET /admin/clock

Get the current simulated time for your sandbox tenant.
Response

POST /admin/clock/advance

Advance the simulated clock by a number of seconds.
Request body
number
required
Number of seconds to advance. Must be positive. Max: 31536000 (1 year) per call.
Response
Advancing the clock alone doesn’t trigger billing. Follow with POST /admin/tick.

POST /admin/tick

Run the billing engine for your tenant at the current simulated time. This processes subscription renewals, dunning retries, grace expiries, and state transitions.
Response

GET /admin/suspense

List transfers that arrived but couldn’t be matched to an open invoice.
Response

POST /admin/suspense/:id/resolve

Manually apply a suspense transfer to a specific invoice, or credit it to the customer’s balance.
Request body
string
required
apply_to_invoice — apply to a specific invoice. credit_balance — add to the customer’s balance.
string
Required if action is apply_to_invoice.