How Credits Work
ActumX uses a credit-based billing system:- Credits are stored in cents (USD)
- Top up your balance to use paid endpoints
- Credits are deducted when you settle x402 payments
- View your balance and transaction history in real-time
In the demo version, the payment system is simulated. Real payment processors (Stripe, etc.) would be integrated for production.
Topping Up Credits
Amount Limits
Top-up amounts must be between 1,000.00:- Minimum: 100 cents ($1.00)
- Maximum: 100,000 cents ($1,000.00)
Viewing Your Balance
Get a complete billing summary for your account:Response Fields
Your current account balance in cents (USD)
Total amount you’ve added to your account
Total amount spent on API requests
Number of non-revoked API keys
Total count of x402 payment transactions
Payment History
View your complete payment history:The endpoint returns the 50 most recent payment intents, ordered by creation date (newest first).
Understanding Credit Consumption
Credits are consumed when you:- Make requests to x402 paid endpoints
- Settle payment challenges
- Complete transactions
Example Cost Structure
Quote Endpoint
Cost: 25 cents per requestEndpoint:
GET /v1/protected/quoteFuture Endpoints
More paid endpoints with varying costs will be added
api/src/config/constants.ts:8:
Credit Ledger System
ActumX maintains a double-entry ledger for all credit movements:Credit Entries (Money In)
Debit Entries (Money Out)
Your balance is calculated by summing all credits and subtracting all debits from the ledger.
Handling Insufficient Balance
When trying to settle a payment without sufficient credits: Request:Best Practices
Maintain a Buffer Balance
Maintain a Buffer Balance
Keep extra credits in your account to avoid failed requests:
- Calculate your expected monthly usage
- Top up with 20-30% extra as a buffer
- Monitor your balance regularly
Track Spending Patterns
Track Spending Patterns
Use the billing summary to understand your usage:
Set Up Balance Alerts
Set Up Balance Alerts
Monitor your balance programmatically and alert when low:
Troubleshooting
Top-Up Not Reflecting
Top-Up Not Reflecting
If your balance doesn’t update after topping up:
- Check the response for a
paymentIntentId - Verify the
balanceCentsin the response - Fetch the billing summary to confirm
- Check payment intents to see if the transaction was recorded
Balance Calculation Mismatch
Balance Calculation Mismatch
If your balance seems incorrect:The balance is calculated from the credit ledger:Verify by checking your payment history and usage events.