Stripe

Stripe API Integration Profile

Information and guides about integrating with Stripe API

Add Stripe Integration to Your Product

How to work with Promotion Codes in Stripe API

Promotion Codes Fields
Field NameAPI KeyTypeDescription
ActiveactivebooleanWhether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
CodecodestringThe customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
CouponcouponobjectA coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices), [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
Amount Offcoupon.amount_offintegerAmount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
Createdcoupon.createdintegerTime at which the object was created. Measured in seconds since the Unix epoch.

See Related Collections

Build every single integration your customers need with AI

Book a demo