Apply swap profile

This endpoint allows you to apply a swap product to a subscription line item using either the general swap profile or a personalized swap profile.

Path Params
string
required

The unique identifier of the subscription in Loop.

string
required

The unique identifier of the subscription line item for which swap products are being retrieved.

Body Params
integer
required

The Shopify ID of the product variant to replace the existing subscription line item with.

integer
required

The quantity of the selected product variant to be added to the subscription line item after the swap.

integer

The unique identifier of the personalized swap profile to apply while swapping the product. If provided, the pricing, discounts, and incentives configured in the specified personalized swap profile will be applied. If omitted, the swap will follow the rules configured in the general swap profile.

Response

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