v1

latestOpenAPI 3.1.02026-07-24571564.5 KB
Subscriptions

Swap a product for a bundle

Swap a product for a bundle in a subscription contract. It will create new subscription contract lines for the bundle items and delete the previous subscription contract lines.

This endpoint is an abstraction of the "update lines" endpoint.

post/customers/{customerId}/subscriptions/{subscriptionId}/swap-product-for-bab

Path parameters

customerIdstring required

Customer Id

subscriptionIdstring required

Subscription Id

Request body

bundlePropsobject
productVariantIdstring
selectedItemsstring[]
lineIdstring

Response

Lines updated

subscriptionContractIdstring