Swap line

This endpoint allows to update the existing line with a new line in a subscription contract.

Path Params
int32
required

Loop ID of the subscription

int32
required

Loop ID of the line to swap

Body Params
int64
required

Shopify ID of the new variant

int32
required

Quantity of the variant

string
enum
required
Allowed:
int32

The sellingPlanGroupId which has to be applied on the line.

customDiscount
object

To apply a custom discount, set the pricingType parameter to CUSTOM.

Response

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