Query
Parameters
Input parameters for credit ledger query
Return Type
Returns aCreditLedgerConnection with ledger entries.
Ledger Entry Fields
| Field | Type | Description |
|---|---|---|
id | UUID | Entry ID |
amount | Float | Transaction amount (+/-) |
type | String | CREDIT or DEBIT |
description | String | Transaction description |
createdAt | DateTime | Transaction time |
balanceAfter | Float | Balance after transaction |
Overdraft settlement event types
The credit ledger includes the following event types related to overdraft settlement:| Event Type | Description |
|---|---|
CREDITS_CONSUMPTION_TRANSFER_SOURCE | Recorded on the overdraft grant when consumed credits are transferred out during settlement. Shows a negative quantity (reduction in consumed amount). |
CREDITS_CONSUMPTION_TRANSFER_TARGET | Recorded on the new grant when consumed credits are transferred in during settlement. Shows a positive quantity (increase in consumed amount). |
Common Use Cases
Transaction history
Transaction history
Show detailed credit transaction history to customers.
Audit trail
Audit trail
Maintain audit trail of all credit movements.
Usage analysis
Usage analysis
Analyze credit consumption patterns.
Related Operations
- Credit Balance - Current balance
- Credit Grants - List grants
