put https://api.loopsubscriptions.com/admin/2023-10/subscription//line//swap
Rate limit - 5/s
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.pricingType
- Define the pricingType for the new line added.OLD
- The selling plan discount associated with the previous line would be applied to the new swapped line.NEW
- The selling plan discount associated with the new line would be applied to the new swapped line.CUSTOM
- Apply custom discount to the new swapped line.
customDiscount
- Apply a custom discount to the new swapped line. Select thepricingType
asCUSTOM
to apply a custom discount.