Apply discount to subscription
Applies one of the account’s discounts to an existing subscription, replacing any discount already on it. Nothing is charged or refunded now: the discount takes effect from the next invoice and lasts as long as the discount’s duration says. Applying the discount the subscription already has is a no-op. Payment plans and ended subscriptions can’t be discounted, and a discount restricted to specific price variants only applies to subscriptions for those variants.
Authorizations
API key in the format: Bearer {api_token}
Path Parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Query Parameters
Comma-separated relations to expand: discount
Body
ID of the discount to apply
"disc_O7Y256nbwxmDh6gMKZvD8pRB"
Response
Discount applied
What the customer told you when they last cancelled from the billing portal. Null if they never did.
ID by default, full object when expanded
ID by default, full object when expanded
ID by default, full object when expanded

