put
https://api.loopsubscriptions.com/admin/2023-10/subscription//line//update'
This endpoint allows you to update the quantity, pricing, selling plan, and custom attributes of a subscription line item.
Token scope - Read & write subscription contracts
Rate limit - Global pool (i.e. 10 requests per second per domain)
Body parameters explained
pricingType- The pricing type to be applied to the subscription line item.SELLING_PLAN- The line item price is derived from the selling plan associated with the subscription.CUSTOM- Allows you to apply a custom discount to the line item using the customDiscount object. The discounted price is calculated based on the discount configuration provided.
customDiscount- The custom discount to be associated with the line which is being edited.- For
PERCENTAGE, provide a whole number (for example,15for a 15% discount). Decimal values are not supported due to Shopify limitations. - For
FIXED_PRICE, provide the fixed amount to be deducted from the line item price. - For
PRICE, provide the final price that should be charged for the line item.
- For
sellingPlanGroupId- ThesellingPlanGroupIdrefers to the selling plan group ID associated with the variant that will be added.- 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
200