Update discount
Updates an existing discount
Authorizations
API key in the format: Bearer {api_token}
Path Parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Body
percentage, fixed forever, once, repeating When the code becomes usable. Checkout rejects it before this time; omit it to make the code usable right away. For a sale that starts later, create the discount now with starts_at set rather than scheduling its creation.
When the code stops being usable. Must be in the future and after starts_at.
How many live orders can use the code, across all customers. Test purchases don't count. The limit set at creation also stays on the Stripe coupon, so raising it later has no effect past that number.
x >= 1Smallest order subtotal, in cents before the discount, that can use the code. Requires currency; an order in another currency can't use the code. null removes it.
x >= 1Each customer can use the code on one live order.
Only customers with no earlier live paid order from this business can use the code. Free orders and test purchases don't count as earlier orders.
Response
Discount updated
active, inactive percentage, fixed forever, once, repeating 
