v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
admin
credits
admin

Export Credit Transactions

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

Query parameters

startstring date-time nullable

ISO timestamp (inclusive)

ISO timestamp (inclusive)

endstring date-time nullable

ISO timestamp (inclusive)

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.

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