Add line

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

Body parameters explained

  • sellingPlanGroupId - The sellingPlanGroupId refers to the selling plan group ID associated with the variant that will be added.
    • If the sellingPlanGroupId is not provided, the system will assign the plan based on the priority of the available selling plan groups.
    • If the provided sellingPlanGroupId is invalid or does not exist, an error will be thrown.
Path Params
int32
required

The unique identifier of the subscription in Loop.

Body Params
int64
required

Shopify variant ID to add to the subscription.

int32
required

Quantity of the variant to add.

int32

Selling plan group to apply on the line item.

boolean

Marks the line item as an upsell for analytics tracking.

int32

Tracks the associated upsell profile analytics.

customAttributes
array of objects

Custom metadata for the line item.

customAttributes
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json