Skip to main content

Discount

Represents a discount applied to the customer or subscription

Fetch all credit cards for the current account:

query CreditCardsQuery {
billing {
discount {
id,
type
startAt
endAt
coupon {
id
duration
durationInMonths
maxRedemptions
name
percentOff
amountOff
timesRedeemed
valid
createdAt
}
}
}
}
type Discount {
coupon: Coupon!
endAt: DateTime
id: ID!
startAt: DateTime!
type: DiscountType!
}

Fields

Discount.coupon ● Coupon! non-null object common

The coupon used to apply this discount.

Discount.endAt ● DateTime scalar common

If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null.

Discount.id ● ID! non-null scalar common

The external id for this discount

Discount.startAt ● DateTime! non-null scalar common

The date when this discount was applied.

Discount.type ● DiscountType! non-null enum common

The type of discount being represented

Member of

BillingType object