A smart endpoint to modify a subscription. Only one type of operation (e.g., action
, product_quantities
) is allowed per request.
product_quantities
: Sets the complete list of products and their quantities, removing any not specified.add_products
: Adds new products to the subscription without affecting existing ones.remove_products
: Removes specific products from the subscription.action
: Perform a state change like pause
or resume
.Auth0 JWT token for user authentication.
The unique identifier for the workspace.
"ws_abc123"
The unique identifier for the billing account (Stripe customer ID).
"cus_abc123"
The unique identifier for the subscription (Stripe subscription ID).
"sub_abc123"
Only one operation type (action, product_quantities, etc.) is allowed per request.
Subscription updated successfully.
The response is of type object
.