---
title: "Personalized swap profile"
method: GET
path: "/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/swapProfileVariant"
---

# Personalized swap profile

`GET /2026-04/subscription/{subscriptionId}/line/{lineId}/swap/swapProfileVariant`

## Request

- Base URL: `https://api.loopsubscriptions.com/storefront`
- URL: `https://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/line/{lineId}/swap/swapProfileVariant`
- Auth: API key in header `Authorization`

This 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.

## Path parameters

- `subscriptionId` string, required
- `lineId` string, required

## Response `200`

- object
  - `success` boolean: Indicates whether the request was processed successfully.
  - `message` string: A message describing the result of the request.
  - `data` object: Contains the personalized swap profile details and the eligible products available for swapping.
    - `products` object[]: The list of products available in the personalized swap profile.
      - `productShopifyId` integer: The unique Shopify identifier of the product.
      - `productTitle` string: The title of the product.
      - `productHandle` string: The Shopify handle of the product.
      - `image` string: The URL of the product image.
      - `spDiscountedPrice` integer: The discounted price of the product applicable to the subscription.
      - `variantsCount` integer: The total number of variants available for the product.
      - `variants` object[]: The list of variants eligible for swapping within the personalized swap profile.
        - `variantShopifyId` integer: The unique Shopify identifier of the product variant.
        - `variantTitle` string: The title of the product variant.
        - `image` string: The URL of the variant image.
        - `sku` unknown
        - `price` integer: The selling price of the product variant.
        - `spDiscountedPrice` integer: The discounted price of the variant applicable to the subscription.
      - `allVariants` object[]: The complete list of variants available for the product, including those not eligible under the personalized swap profile.
        - `variantShopifyId` integer: The unique Shopify identifier of the product variant.
        - `variantTitle` string: The title of the product variant.
        - `image` string: The URL of the variant image.
        - `sku` unknown
        - `price` integer: The selling price of the product variant.
        - `spDiscountedPrice` integer: The discounted price of the variant applicable to the subscription.
    - `swapProfileId` integer: The unique identifier of the personalized swap profile applied to the subscription line item.
    - `discountType` string: The type of discount configured for the personalized swap profile.
    - `incentiveType` string: The type of incentive configured for the personalized swap profile.
    - `incentiveConfig` object: Contains the configuration details of the incentive applied to the personalized swap profile.
      - `discountType` string: The type of discount applied as part of the personalized swap profile incentive.
      - `discountTitle` string: The title or label of the discount configured for the personalized swap profile.
      - `discountValue` integer: The value of the discount configured for the personalized swap profile.
      - `recurringCycleLimit` integer: The maximum number of recurring billing cycles for which the incentive will be applied.
    - `groupingType` string: Defines how products are grouped within the personalized swap profile.
    - `showGeneralSwapProduct` boolean: Indicates whether products from the general swap profile should also be included in the swap options.
  - `pageInfo` unknown
  - `code` string: The response code indicating the outcome of the request.

## Changes

- **2026-11-03** `1ff6a5700816`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/loopwork/apis/storefront-api/changes/2026-04/subscription/:subscriptionId/line/:lineId/swap/swapProfileVariant/get.md)

---

[API](https://skmtc.dev/loopwork/apis/storefront-api.md) - [All operations](https://skmtc.dev/loopwork/apis/storefront-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopwork/apis/storefront-api/revisions/1ff6a5700816?raw)
