Create a coupon
Use a Bearer token to access this API.
{
"applies_to": { "products": ["string"] },
"name": "Coupon",
"amount_off": 100,
"duration": "once",
"percent_off": 10,
"max_redemptions": 100,
"metadata": { "key": "value" }
}
Success
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 subscriptions and checkout sessions.
{
"coupon_id": "fcoup_1234567890",
"amount_off": 0,
"applies_to": { "products": ["string"] },
"duration": "once",
"duration_in_months": 0,
"metadata": {},
"name": "Example",
"percent_off": 0,
"max_redemptions": 0,
"times_redeemed": 0,
"valid": false,
"created_at": "2024-01-01T00:00:00Z",
"test_mode": false
}