Billing API

Manage your account balance, transactions, and billing information programmatically.

Get Balance

GET/api/billing/balance

Get current account balance.

Example Response:

{
  "balance": 1000000.0
}

Get Transactions

GET/api/billing/transactions

List 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/topup

Initiate a balance top-up.

Request Body:

{
  "amount": 100000,
  "payment_method": "bank_transfer"
}