Skip to main content
Schema2020-08-27object

deleted_discount

Source
openapi/spec3.json
Commit
d70de345383d
Active snapshot
da69df7e6e11

DeletedDiscount

object
checkout_session string
optionalnullable

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.

coupon Coupon object
required

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).

customer
optionalnullable

The ID of the customer associated with this discount.

deleted boolean
required

Always true for a deleted object

id string
required

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.

invoice string
optionalnullable

The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.

invoice_item string
optionalnullable

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.

object string
required

String representing the object's type. Objects of the same type share the same value.

promotion_code
optionalnullable

The promotion code applied to create this discount.

start integer (unix-time)
required

Date that the coupon was applied.

subscription string
optionalnullable

The subscription that this coupon is applied to, if it is applied to a particular subscription.