put
https://api.loopsubscriptions.com/storefront/2023-10/subscription//line//swap
This endpoint allows you to replace an existing product in the subscription with a new product.
Body parameters explained
variantShopifyId- Shopify id of the variant with which the existing line is being swapped.quantity- Quantity of the new variant which is being swapped with the existing lineItem.sellingPlanGroupId- ThesellingPlanGroupIdrefers to the selling plan group ID associated with the variant that will be swapped.- If the
sellingPlanGroupIdis not provided, the system will assign the plan based on the priority of the available selling plan groups. - If the provided
sellingPlanGroupIdis invalid or does not exist, an error will be thrown.
- If the
