This endpoint allows you to permanently adds a product to a subscription, ensuring it recurs in all future orders until removed.

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

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/line
  • Auth
    API key in header Authorization

Path parameters

subscriptionIdinteger required

The unique identifier of the subscription in Loop.

Request body

variantShopifyIdinteger required

Shopify variant ID to add to the subscription.

quantityinteger required

Quantity of the variant to add.

sellingPlanGroupIdinteger

Selling plan group to apply on the line item.

isUpsellboolean

Marks the line item as an upsell for analytics tracking.

upsellProfileIdinteger

Tracks the associated upsell profile analytics.

Response

Line added successfully

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Line added successfully",
  "data": {
    "id": 39372,
    "name": "Product 01",
    "shopifyId": "25c0e4fa-4a11-4b3f-a259-15604cd669b2",
    "variantShopifyId": 52329477341457,
    "quantity": 2,
    "price": "200.00",
    "discountedPrice": 400,
    "variantTitle": "Default Title",
    "sku": "SKUID1234"
  },
  "code": "SUCCESS"
}

Changes