Skip to main content
GET
/
api
/
v1
/
billing
/
transactions
curl "https://api.mor.org/api/v1/billing/transactions?entry_type=purchase&limit=10" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "items": [
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567890",
      "user_id": 1234,
      "currency": "USD",
      "status": "posted",
      "entry_type": "purchase",
      "amount_paid": "25.00",
      "amount_staking": "0.00",
      "amount_total": "25.00",
      "payment_source": "stripe",
      "description": "Credit purchase",
      "created_at": "2026-05-01T10:00:00Z",
      "updated_at": "2026-05-01T10:00:00Z"
    },
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567891",
      "entry_type": "usage_charge",
      "status": "posted",
      "amount_paid": "0.00",
      "amount_staking": "-0.0042",
      "amount_total": "-0.0042",
      "model_name": "llama-3.3-70b",
      "endpoint": "/api/v1/chat/completions",
      "tokens_total": 384,
      "created_at": "2026-05-22T14:30:00Z",
      "updated_at": "2026-05-22T14:30:00Z"
    }
  ],
  "total": 89,
  "limit": 10,
  "offset": 0,
  "has_more": true
}
Get a paginated list of all credit ledger entries for the authenticated user. This is the full account history — purchases, daily staking refreshes, usage charges, refunds, and adjustments. Use this endpoint when you need the complete financial audit trail, not just inference usage.

Headers

Authorization
string
required
API key or Cognito JWT: Bearer sk-xxxxxx

Query Parameters

limit
integer
default:"50"
Maximum number of items to return (minimum 1).
offset
integer
default:"0"
Number of items to skip for pagination.
entry_type
string
Filter by ledger entry type:
  • purchase — Credit top-ups (Stripe, Coinbase, etc.)
  • staking_refresh — Daily staking allowance refresh
  • usage_hold — Pending hold while a request is in flight
  • usage_charge — Finalized inference usage charge
  • refund — Credit refund
  • adjustment — Manual or system adjustment
from
string
Filter entries created after this datetime (ISO 8601).
to
string
Filter entries created before this datetime (ISO 8601).

Response

items
array
List of ledger entries. Returns newest entries first.
total
integer
Total number of matching entries.
limit
integer
Page size used for this response.
offset
integer
Offset used for this response.
has_more
boolean
Whether additional pages are available.
curl "https://api.mor.org/api/v1/billing/transactions?entry_type=purchase&limit=10" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "items": [
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567890",
      "user_id": 1234,
      "currency": "USD",
      "status": "posted",
      "entry_type": "purchase",
      "amount_paid": "25.00",
      "amount_staking": "0.00",
      "amount_total": "25.00",
      "payment_source": "stripe",
      "description": "Credit purchase",
      "created_at": "2026-05-01T10:00:00Z",
      "updated_at": "2026-05-01T10:00:00Z"
    },
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567891",
      "entry_type": "usage_charge",
      "status": "posted",
      "amount_paid": "0.00",
      "amount_staking": "-0.0042",
      "amount_total": "-0.0042",
      "model_name": "llama-3.3-70b",
      "endpoint": "/api/v1/chat/completions",
      "tokens_total": 384,
      "created_at": "2026-05-22T14:30:00Z",
      "updated_at": "2026-05-22T14:30:00Z"
    }
  ],
  "total": 89,
  "limit": 10,
  "offset": 0,
  "has_more": true
}
For inference usage only, prefer List Usage — it returns a cleaner schema focused on API calls. Use List Transactions when you also need purchases, refreshes, and refunds.