Add line

Rate limit - 5/s

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

Request

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

Shopify ID of the variant

quantityinteger required

Quantity

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

200

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.