General swap profile
Changed onThis endpoint allows you to retrieve the list of products available in the general swap profile for swapping a subscription line item.
get/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/variant
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/variant
- 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.
Query parameters
pageNostring
The page number of the results to retrieve.
pageSizestring
The maximum number of products to return per page.
searchstring
Search products by product title name.
Response
Example response
{
"success": true,
"message": "Fetched list of swap products successfully",
"data": [
{
"id": 21712163,
"productShopifyId": 8948431388849,
"variantShopifyId": 46601626910897,
"productTitle": "Digital products",
"productHandle": "3-pack-box",
"image": "https://cdn.shopify.com/s/files/1/0669/3984/6833/files/box_a297b43e-950b-4359-b872-8a573cf1497a.jpg?v=1736940989",
"price": 242.4,
"spDiscountedPrice": 242.4,
"variantsCount": 1,
"options": [
{
"name": "Title",
"values": [
"Default Title"
],
"position": 1
}
]
}
],
"code": "SUCCESS"
}Changes
- info
endpoint added
- info