v2
admin
credits
admin

Export Credit Transactions

Changed on

Export CreditTransaction rows in [start, end].

Capped at CREDIT_EXPORT_MAX_DAYS days and CREDIT_EXPORT_MAX_ROWS rows; over-cap requests fail fast with 400 so callers narrow the window instead of receiving silently truncated data.

get/api/credits/admin/transactions/export

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Query parameters

startstring date-time nullable

ISO timestamp (inclusive)

endstring date-time nullable

ISO timestamp (inclusive)

transaction_type'TOP_UP' | 'USAGE' | 'GRANT' | 'REFUND' | 'CARD_CHECK' | 'SUBSCRIPTION'
user_idstring nullable
include_inactiveboolean

Include inactive rows (e.g. abandoned Stripe checkouts). Off by default so phantom rows aren't surfaced in normal exports.

Response

Successful Response

total_rowsinteger required
window_daysinteger required
max_window_daysinteger required

Changes