Add lineAsk AIpost https://api.loopsubscriptions.com/admin/2023-10/subscription/{subscriptionId}/lineThis endpoint allows you to add a new subscription line item in a subscription contract.Path ParamssubscriptionIdint32requiredThe unique identifier of the subscription in Loop.Body ParamsvariantShopifyIdint64requiredShopify ID of the variantquantityint32requiredQuantitysellingPlanGroupIdint32The sellingPlanGroupId which has to be applied on the lineisUpsellbooleanThis key allows you to track upsell analytics by indicating whether an item is an upsell or nottruefalsepricingTypestringenumSELLING_PLANCUSTOMAllowed:SELLING_PLANCUSTOMcustomDiscountobjectTo apply a custom discount, set the pricingType parameter to CUSTOMcustomDiscount objectcustomAttributesarray of objectscustomAttributesADD objectlineOrderIntervalstringnextOrderIdstringResponse 200200Updated 2 months ago