SubscriptionCharge

The SubscriptionCharge type in Bunny's GraphQL API and its fields.

Name Type Description
account Account  
amount Float  
billingCycles List (BillingCycle)  
billingPeriod BillingPeriod  
chargeType ChargeType  
code String  
coupon Coupon  
createdAt ISO8601DateTime  
creditOverage CreditOverage Credits-mode usage: what the current period bills beyond credits, on the account current date
creditValidityMonths Int  
currency Currency  
currencyId ID  
currentPeriodPriceByTiers List (SubscriptionTieredPrice)  
depletionPolicy CreditDepletionPolicy  
discount Float  
discountedPrice String  
endDate ISO8601Date  
expired Boolean  
feature Feature  
fullyBilled Boolean  
histogram Histogram  
id ID  
invoiceLineText String  
isAmendment Boolean  
isRamp Boolean  
kind QuoteChangeKind  
name String  
periodPrice Float  
price String  
priceDecimals Int  
priceList PriceList  
priceListCharge PriceListCharge  
priceListChargeId ID  
priceListId ID  
priceTiers List (SubscriptionPriceTier)  
pricingModel PricingModel  
prorationRate Float  
quantity Int  
quantityMax Int  
quantityMin Int  
selfServiceQuantity Boolean  
startDate ISO8601Date  
subscription Subscription  
subscriptionId ID  
subtotal Float  
taxAmount Float  
tieredAveragePrice Float Average price value when charge is Tiered
topUpCharge PriceListCharge  
topUpChargeId ID Credits-mode usage with a top-up policy: the top-up charge each top-up buys
topUpMaxPerMonth Int Most top-ups per month; empty means no cap
topUpPrice Float Credits-mode usage: what one credit bought by hand costs, through the top-up charge or the usage charge it is created from
topUpQuantity BigDecimal Credits each top-up buys
topUpTarget BigDecimal Top up to this many available credits
topUpThreshold BigDecimal Top up when available credits drop to or below this
trial Boolean  
updatedAt ISO8601DateTime  
usageCredits Boolean True when the charge grants credits
usageMode UsageMode