Update subscription products

Update the products in a subscription. This endpoint accepts the new desired state of products and automatically determines whether to add, remove, or exchange items. Supports optional yearly limit enforcement and automatic duration extension.

Path Params
string
required

Subscription ID (integer)

Body Params
cart_items
array of objects
required

Desired state of cart items (existing IDs kept, new IDs added, missing items removed)

cart_items*
discounts
array of objects

Optional promotional discounts

discounts
boolean

If true, enforces yearly exchange limits (returns 422 if exceeded)

boolean

If true, automatically extends subscription duration for exchanges

Headers
string
required
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Basic
base64
:
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html