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

post/2023-10/subscription/{subscriptionId}/line

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2023-10/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

The unique identifier of the variant in Shopify

quantityinteger required

The quantity of variant to be added

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

upsellProfileIdinteger

This key allows you to track the exact upsell profile analytics

Response

200

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Line added successfully",
  "data": {
    "id": 2473902,
    "name": "A Ring - 6",
    "shopifyId": "6c2390a0-2d7d-4ce9-9cb0-2a08e7c8c10d",
    "quantity": 2,
    "price": "9.00"
  },
  "code": "SUCCESS"
}

Changes

    • breaking

      the response's property type changed from no type to object for status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status