CreditLedgerEntry
An append-only movement of usage credits. The CreditLedgerEntry type in Bunny's GraphQL API and its fields.
| Name | Type | Description |
|---|---|---|
| accountId | ID | |
| amount | Float | Signed: positive adds credits, negative removes them |
| balanceAfter | Float | |
| createdAt | ISO8601DateTime | |
| creditBalanceId | ID | |
| creditGrant | CreditGrant | |
| creditGrantId | ID | |
| featureUsageId | ID | The usage record a drawdown or reversal was posted for |
| id | ID | |
| invoice | Invoice | |
| invoiceId | ID | The invoice billing the usage, once invoiced, or for a grant the invoice that sold its credits |
| invoiceItemId | ID | |
| kind | CreditLedgerEntryKind | |
| reason | String | |
| sequence | Int | Position in the balance ledger, starting at 1 |
| subscriptionId | ID |