Get Balance
GET https://routerbase.kuaibaike.com/api/v1/billing/balance
{
"credits": 42.50,
"currency": "USD"
}
Top Up Credits
POST https://routerbase.kuaibaike.com/api/v1/billing/topup
Initiate a credit purchase via Stripe.
Amount in USD to add to your balance.
Transaction History
GET https://routerbase.kuaibaike.com/api/v1/billing/transactions
Returns a paginated list of all credit purchases and usage deductions.
Query Parameters
Results per page. Default: 20.
Response
{
"data": [
{
"id": "txn_01HXYZ",
"credits": -0.05,
"amount": 0.05,
"payment_method": "usage",
"status": "completed",
"created_at": "2025-01-15T11:00:00Z"
}
],
"total": 150,
"page": 1,
"per_page": 20
}
Balance Alerts
Create Alert
POST https://routerbase.kuaibaike.com/api/v1/billing/alerts
Receive an email when your balance drops below this credit amount.
Delete Alert
DELETE https://routerbase.kuaibaike.com/api/v1/billing/alerts/{id}