Personalized swap profile
Changed onThis endpoint allows you to retrieve the personalized swap profile configured for a subscription line item, along with the eligible products, variants, and swap profile configuration.
get/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/swapProfileVariant
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/swapProfileVariant
- AuthAPI key in header Authorization
Path parameters
subscriptionIdstring required
The unique identifier of the subscription in Loop.
lineIdstring required
The unique identifier of the subscription line item for which swap products are being retrieved.
Response
Example response
{
"success": true,
"message": "Fetched personalized swap variants successfully",
"data": {
"products": [
{
"productShopifyId": 8424626618545,
"productTitle": "Monthly Box (May)",
"productHandle": "0-1-kg-free-product",
"image": "https://cdn.shopify.com/s/files/1/0669/3984/6833/files/box_a297b43e-950b-4359-b872-8a573cf1497a.jpg?v=1736940989",
"spDiscountedPrice": 101,
"variantsCount": 1,
"variants": [
{
"variantShopifyId": 45667614589105,
"variantTitle": "Default Title",
"image": "https://cdn.shopify.com/s/files/1/0669/3984/6833/files/box_a297b43e-950b-4359-b872-8a573cf1497a.jpg?v=1736940989",
"price": 101,
"spDiscountedPrice": 101
}
],
"allVariants": [
{
"variantShopifyId": 45667614589105,
"variantTitle": "Default Title",
"image": "https://cdn.shopify.com/s/files/1/0669/3984/6833/files/box_a297b43e-950b-4359-b872-8a573cf1497a.jpg?v=1736940989",
"price": 101,
"spDiscountedPrice": 101
}
]
}
],
"swapProfileId": 46,
"discountType": "OLD",
"incentiveType": "DISCOUNT",
"incentiveConfig": {
"discountType": "PERCENTAGE",
"discountTitle": "Subscription discount",
"discountValue": 10
},
"groupingType": "PRODUCT_VARIANT"
},
"code": "SUCCESS"
}Changes
- info
endpoint added
- info