Billing API
Manage your account balance, transactions, and billing information programmatically.
Get Balance
GET
/api/billing/balanceGet current account balance.
Example Response:
{
"balance": 1000000.0
}Get Transactions
GET
/api/billing/transactionsList all transactions (top-ups and usage).
Query Parameters:
- •
type: Filter by type (topup, usage) - •
start_date: Start date (YYYY-MM-DD) - •
end_date: End date (YYYY-MM-DD) - •
limit: Maximum number of results
Top Up Balance
POST
/api/billing/topupInitiate a balance top-up.
Request Body:
{
"amount": 100000,
"payment_method": "bank_transfer"
}