Operations API
Subscriptions

Create Discount

This API endpoint (POST) adds a discount on a subscription. If the request succeeds, it returns a Subscription Object. Permissions: subscriptions.edit Webhook event: subscription-updated

Path Parameters

id * The id of the subscription to update.

Body Parameters

duration string * The possible values are once, forever and repeating.



amount integer * The fixed amount to discount from the subscription.



percent decimal * The percentage amount to discount from the subscription.



number_of_months integer The number of months to apply this discount. Required if duration is set to repeating.