Create discount
Creates a new discount code
Authorizations
API key in the format: Bearer {api_token}
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
255Body
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 created
active, inactive percentage, fixed forever, once, repeating 
