Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.
Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.
A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)
Currency of the amountOff parameter (required if amountOff is passed)
Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.
A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.
A set of key/value pairs that you can attach to a coupon object. It can be useful for storing additional information about the coupon in a structured format. This will be unset if you POST an empty value.
A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)
Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.
A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)
Currency of the amountOff parameter (required if amountOff is passed)
Specifies how long the discount will be in effect.
Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.
Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.
Unique string of your choice that will be used to identify this coupon when applying it to a customer.
Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.
A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid.
A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.
A set of key/value pairs that you can attach to a coupon object.
A set of key/value pairs that you can attach to a coupon object. It can be useful for storing additional information about the coupon in a structured format. This will be unset if you POST an empty value.
A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)
Unix timestamp specifying the last time at which the coupon can be redeemed.
Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.
Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.
Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.
A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)
Currency of the amountOff parameter (required if amountOff is passed)
Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.
A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.
A set of key/value pairs that you can attach to a coupon object. It can be useful for storing additional information about the coupon in a structured format. This will be unset if you POST an empty value.
A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)
Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.
https://stripe.com/docs/api#create_coupon