Swap line
Changed onThis endpoint allows you to replace an existing product in the subscription with a new product.
put/2026-04/subscription/{subscriptionId}/line/{lineId}/swap
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/line/{lineId}/swap
- AuthAPI key in header Authorization
Path parameters
subscriptionIdinteger required
The unique identifier for a subscription in Loop.
lineIdinteger required
Loop ID of the line to swap
Request body
Response
Line swapped successfully
Example response
{
"success": true,
"message": "Line swapped successfully",
"data": {
"id": 38402,
"name": "Product 02",
"shopifyId": "0cedcec7-b7bc-42d1-b8b0-32c4f31147d0",
"variantShopifyId": 52329498280209,
"quantity": 2,
"price": "7650.00",
"discountedPrice": 15300,
"variantTitle": "Default Title"
},
"code": "SUCCESS"
}Changes
- info
endpoint added
- info