Subscriptions
Update Subscription
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 likepause
orresume
.
PATCH
Update Subscription
Authorizations
Auth0 JWT token for user authentication.
Path Parameters
The unique identifier for the workspace.
Example:
"ws_abc123"
The unique identifier for the billing account (Stripe customer ID).
Example:
"cus_abc123"
The unique identifier for the subscription (Stripe subscription ID).
Example:
"sub_abc123"
Body
application/json
Only one operation type (action, product_quantities, etc.) is allowed per request.
Response
200 - application/json
Subscription updated successfully.
The response is of type object
.
Update Subscription