Updates a subscription. This endpoint supports multiple distinct operations. You can change product quantities, add or remove products, update metadata, or perform an action like pause, resume, or sync. Only one type of operation (e.g., product_quantities, add_products, action) is allowed per request.
Enter your JWT in the format: Bearer {token}
The ID of the workspace.
"ws_a1b2c3d4e5f6g7h8"
The ID of the billing account, which corresponds to a Stripe Customer ID (cus_...).
"cus_a1b2c3d4e5f6g7h8"
The ID of the Stripe subscription (sub_...).
"sub_a1b2c3d4e5f6g7h8"
Specify one of the following operations: action, product_quantities, add_products, or remove_products. metadata can be combined with product_quantities.
Perform a state change action on the subscription.
pause, resume, sync Replace all current product quantities with this new set. To remove a product, omit it from this object. A quantity of 0 is not allowed; omit the key to remove.
{ "locations": 20, "users": 100 }Add new products to the subscription or increase the quantity of existing ones.
{ "sso": 1 }A list of product types to remove from the subscription.
locations, users, sso ["sso"]A set of key-value pairs to store with the subscription. Will be merged with existing metadata.
{ "project_id": "proj_def456" }The subscription was updated successfully.
Unique identifier for the subscription (Stripe Subscription ID), prefixed with sub_.
"sub_a1b2c3d4e5f6g7h8"
The ID of the billing account this subscription belongs to.
"cus_a1b2c3d4e5f6g7h8"
The status of the subscription.
active, past_due, unpaid, canceled, incomplete, incomplete_expired, trialing, paused "active"
The three-letter ISO currency code for the subscription.
usd, zar, eur, gbp, aud "usd"
A map of meterable product types to their subscribed quantities and pricing details.
{
"locations": {
"price_id": "price_123abc",
"quantity": 10,
"interval": "month"
},
"users": {
"price_id": "price_456def",
"quantity": 50,
"interval": "month"
}
}A set of key-value pairs that you can attach to an object.
{ "order_id": "6735" }The start of the current billing period.
"2025-10-15T00:00:00Z"
The end of the current billing period.
"2025-11-15T00:00:00Z"
The timestamp when the subscription was created.
"2025-10-15T12:30:00Z"
The timestamp when the subscription was last updated in our system.
"2025-10-20T09:00:00Z"