Overview
The billing system tracks credit balance, top-ups, and usage. Credits are denominated in cents (USD). The current implementation uses a simulated payment system for development.Get Billing Summary
Retrieve account balance and usage statistics.This endpoint requires session authentication (dashboard login).
Response
Current account balance in cents (USD)
Total amount topped up (all time) in cents
Total amount spent on usage (all time) in cents
Count of active (non-revoked) API keys
Total count of x402 payment transactions
Balance = Total Top-Ups - Total Usage
Top Up Credits
Add credits to your account balance. This endpoint simulates payment for development purposes.This endpoint requires session authentication (dashboard login).
Request Body
Amount to add in cents (USD)
- Minimum: 100 cents ($1.00)
- Maximum: 100,000 cents ($1,000.00)
Response
Unique identifier for the payment intent (prefixed with
pi_)Amount added to the balance in cents
Updated account balance in cents
Error Response
If the amount is outside the allowed range:List Payment Intents
Retrieve recent payment intents (top-up history).This endpoint requires session authentication (dashboard login).
Response
List of payment intent objects (up to 50 most recent)
Credit Ledger System
Behind the scenes, ActumX uses a double-entry ledger system:Credit Entries
- Source:
top_up - Direction:
credit - Reference: Payment intent ID
Debit Entries
- Source:
api_request - Direction:
debit - Reference: x402 transaction ID
Error Codes
| Status | Error | Description |
|---|---|---|
| 401 | unauthorized | Not logged in or session expired |
| 400 | amount_must_be_between_100_and_100000_cents | Top-up amount outside allowed range |
Pricing
Current x402 request pricing:- Protected endpoint request: 25 cents ($0.25 USD)