Change subscription price
Changed onMoves a subscription to another price of the same product now and charges the prorated difference to the buyer's saved payment method. If the charge is declined, the subscription stays on its old price. A price on a different billing interval restarts the billing cycle today. Preview the charge first with GET /subscriptions/{id}/price_change_preview.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource's ID, as returned in its id field
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.
Request body
The price variant (price_...) to move to. It must be a recurring, fixed price of the same product and currency.
The proration_date from the preview, so the charge equals the previewed amount_due
Example request
{
"price_variant": "price_O7Y256nbwxmDh6gMKZvD8pRB"
}Response
Subscription moved to the new price
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