The ID of the discount object. Discounts cannot be fetched by ID. Use expand[]=discounts in API calls to expand discount IDs in an array.
String representing the object's type. Objects of the same type share the same value.
The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
The ID of the customer associated with this discount.
The ID of the account representing the customer associated with this discount.
OptionaldeletedAlways true for a deleted object
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.
The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
The promotion code applied to create this discount.
Date that the coupon was applied.
The subscription that this coupon is applied to, if it is applied to a particular subscription.
The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
A discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.
Related guide: Applying discounts to subscriptions