created_at desc. Mirrors the table at
console.bytespike.ai/billing.
Free.
When to use
- Reconcile a Stripe receipt against the balance change
- Export a CSV of transactions for accounting
- Detect platform-admin adjustments (
admin_credit/admin_debit)
GET /me/usage. For per-key roll-up, use GET /balance.
Request
Query parameters
| Param | Type | Notes |
|---|---|---|
page | integer | Default 1. |
page_size | integer | Default 50, max 200. |
kind | string | Filter: topup / refund / admin_credit / admin_debit / subscription_renew. |
since | string | ISO timestamp — only entries on/after this moment. |
until | string | ISO timestamp — only entries strictly before this moment. |
Response
Response fields
| Field | Type | Notes |
|---|---|---|
items[].kind | string | topup (card / wire), refund (failed-call rebate), admin_credit / admin_debit, subscription_renew. |
items[].amount_usd | number | Signed: positive for credits, negative for debits. |
items[].balance_after_usd | number | Snapshot of the wallet after this entry posted. Useful for reconciliation. |
items[].source | object | Per-kind shape — provider + receipt_id for topup; actor for admin entries. |
items[].note | string | null | Free-form note attached at write time (admin entries only). |
total | integer | Total rows matching the filter (page-independent). |
Errors
| Status | error.type | Trigger |
|---|---|---|
| 400 | invalid_request_error | page / page_size out of range, or since not parseable. |
| 401 | authentication_error | Missing / revoked key. |