Skip to main content

BillingType

No description

type BillingType {
availableFeatures: [BillingFeatureType!]!
cardSetupIntents: [CardSetupIntent!]!
creditCards: [CreditCard!]!
discount: Discount
plans(
state: [PlanState!] = [TRIAL, PAID]
): [Plan!]!
pricings(
showAll: Boolean = false
): [Pricing!]!
usages: [BillingUsageType!]!
}

Fields

BillingType.availableFeatures ● [BillingFeatureType!]! non-null object common

Fetch all available features of the current plan of current account:

query FeaturesQuery {
billing {
availableFeatures {
key
name
value
}
}
}

BillingType.cardSetupIntents ● [CardSetupIntent!]! non-null object common

Fetch all pending setup intents for the current account

BillingType.creditCards ● [CreditCard!]! non-null object common

Fetch all credit cards for the current account

BillingType.discount ● Discount object common

Fetch current active discount for this account

BillingType.plans ● [Plan!]! non-null object common

Fetch all plans for the current account

BillingType.plans.state ● [PlanState!] list enum common

Limit returned plans to particular states

BillingType.pricings ● [Pricing!]! non-null object common

Lists available pricing.

BillingType.pricings.showAll ● Boolean scalar common

Show all available pricing instead of just account relevant pricing

BillingType.usages ● [BillingUsageType!]! non-null object common

Fetch all usage for the current account:

query FeaturesQuery {
billing {
usage {
key
value
}
}
}

Returned by

billing query