objectdiscount
A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end. Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
- Source
openapi/spec3.json- Commit
d70de345383d- Active snapshot
da69df7e6e11
Discount
objectA discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end. Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
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.
A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or [orders](https://stripe.com/docs/api#create_order_legacy-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
The ID of the customer associated with this discount.
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 ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array.
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.
String representing the object's type. Objects of the same type share the same value.
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.