Console API
Billing
5 endpoints.
/api/v1/admin/billing/{business_id}/auto-reloadGet a business's auto-reload config
Read auto-reload settings + spent-this-month / failure counters. Payments returns a default disabled config when unset; a payments outage degrades to 503.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_AutoReloadData_| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | AutoReloadData | AutoReloadData fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/billing/{business_id}/balanceGet a business's credit balance (used-of-total)
Credit balance for the used-of-total bar. The console aggregates the lots (Σ usage / Σ amount); no per-lot breakdown is rendered.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_BillingBalanceData_| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||
success | true | default true | ||||||||||||||||||
datarequired | BillingBalanceData | BillingBalanceData fields
| ||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | ||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/billing/{business_id}/checkout-sessions/{session_id}What came of a Checkout session
The outcome of a subscription, plan-change or recharge Checkout, by the session id Stripe put in the return URL (pass ``{CHECKOUT_SESSION_ID}`` in ``success_url``; Stripe replaces it). The return URL alone is not evidence of payment: payments reads the session from Stripe. **404** when the session is not this business's; transport / 5xx → 503.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
session_idrequired | path | string |
Responses
200Successful Responseapplication/jsonSuccessResponse_CheckoutOutcomeData_| Field | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||
datarequired | CheckoutOutcomeData | CheckoutOutcomeData fields
| |||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/billing/{business_id}/plansList the self-serve plan catalogue
The plan catalogue for the not-subscribed Billing screen (one card per plan). The catalogue is global; ``business_id`` scopes membership auth only (like the other billing reads). A payments outage degrades to 503 ``BILLING_UNAVAILABLE`` — the console just can't render cards.
**Never the `$0` free plan, for anyone — platform admins included.** The Legacy plan is not offered in the console: nobody is put on it from here, and it has no Stripe price, so a card for it could only fail. A business already on it still sees its plan on ``…/status`` and leaves it through billing_subscribe, which changes the plan.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_PlanCatalogData_| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||
success | true | default true | |||||||||
datarequired | PlanCatalogData | PlanCatalogData fields
| |||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/billing/{business_id}/statusGet a business's billing/entitlement status
Read plan + entitlement for the Billing overview. ``get_access_status`` is fail-closed for the enforcement gate, but for *display* an unreadable status must not masquerade as suspended — so a ``retryable`` (payments-unreachable) result surfaces as 503, not a fake status.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_BillingStatusData_| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | BillingStatusData | BillingStatusData fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.