Add line

This endpoint allows you to add a new subscription line item in a subscription contract.

post/2026-04/subscription/{subscriptionId}/line

Request

  • Base URL
    https://api.loopsubscriptions.com/admin
  • URL
    https://api.loopsubscriptions.com/admin/2026-04/subscription/{subscriptionId}/line
  • Auth
    API key in header X-Loop-Token

Path parameters

subscriptionIdinteger required

The unique identifier of the subscription in Loop.

Request body

variantShopifyIdinteger required

The shopify variant id of the product that needs to be added to the subscription

quantityinteger required

Line item quantity for the shopify variant

sellingPlanGroupIdinteger

The sellingPlanGroupId which has to be applied on the line

isUpsellboolean

This key allows you to track upsell analytics by indicating whether an item is an upsell or not

pricingType'SELLING_PLAN' | 'CUSTOM'
lineOrderIntervalstring
nextOrderIdstring

Response

Line added successfully

successboolean
messagestring
dataunknown
codestring

Example response

{
  "success": true,
  "message": "Line added successfully",
  "code": "SUCCESS"
}

Changes

No recorded changes to this operation across all 1 revision of this API.