CreditGrant
One allocation of usage credits to a subscription. The CreditGrant type in Bunny's GraphQL API and its fields.
| Name | Type | Description |
|---|---|---|
| accessEnd | ISO8601Date | |
| accessStart | ISO8601Date | |
| account | Account | |
| accountId | ID | |
| amount | Float | Credits granted |
| costBasisPerCredit | Float | |
| createdAt | ISO8601DateTime | |
| creditBalanceId | ID | |
| currencyId | ID | |
| denomination | String | The currency code or unit name |
| feature | Feature | |
| featureId | ID | Set for unit credits: the feature they prepay |
| id | ID | |
| invoiceItemId | ID | The invoice line that sold the credits |
| kind | CreditGrantKind | |
| priority | Int | Lower values are drawn down first |
| quoteChargeId | ID | Set when a one-time credit charge sold the credits |
| reason | String | |
| remaining | Float | Credits not yet consumed, voided or expired |
| status | CreditGrantStatus | Status today in the account’s entity timezone |
| subscription | Subscription | |
| subscriptionChargeId | ID | Set when a recurring credit charge granted the credits |
| subscriptionId | ID | |
| voidReason | String | |
| voidedAt | ISO8601DateTime |