Swap line

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 - The sellingPlanGroupId refers to the selling plan group ID associated with the variant that will be swapped.
    • If the sellingPlanGroupId is not provided, the system will assign the plan based on the priority of the available selling plan groups.
    • If the provided sellingPlanGroupId is invalid or does not exist, an error will be thrown.
Language
Credentials
Header
Click Try It! to start a request and see the response here!