Apply discount to subscription
Changed onApplies 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.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource's ID, as returned in its id field
Query parameters
Comma-separated relations to expand: discount
Request body
ID of the discount to apply
Example request
{
"discount": "disc_O7Y256nbwxmDh6gMKZvD8pRB"
}Response
Discount applied
The billing status. paused whenever payment collection is paused, even while the provider still reports the subscription as active.
What the contact 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
ID by default, full object when expanded
Changes
- warning
added the new
expiredenum value to thediscount/oneOf[#/components/schemas/Discount]/statusresponse property for the response status - info
added the optional property
price_variantto the response with the status - info
added the required property
order/oneOf[#/components/schemas/Order]/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sellsto the response with the status
3 more changes in this revision
- warning