v1

latestOpenAPI 3.1.02026-07-241120379.1 KB

Add line

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

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

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
{"stackTrail":"paths:/2023-10/subscription/{subscriptionId}/line:post:responses:200:content:application/json:schema:properties:data","oasType":"schema","type":"unknown"}
codestring

Example response

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