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

# General swap profile

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

## Request

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

This endpoint allows you to retrieve the list of products available in the general swap profile for swapping a subscription line item.

## Path parameters

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

## Query parameters

- `pageNo` string
- `pageSize` string
- `search` string

## Response `200`

- object
  - `success` boolean: Indicates whether the request was processed successfully.
  - `message` string: A message describing the result of the request.
  - `data` object[]: A list of products available in the general swap profile.
    - `id` integer: The unique identifier of the swap product in Loop.
    - `productShopifyId` integer: The unique Shopify identifier of the product.
    - `variantShopifyId` integer: The unique Shopify identifier of the product variant.
    - `productTitle` string: The title of the product.
    - `variantTitle` unknown
    - `productHandle` string: The Shopify handle of the product.
    - `sku` unknown
    - `image` string: The URL of the product image.
    - `price` number: The selling price of the product variant.
    - `spDiscountedPrice` number: The discounted price of the product variant applicable to the subscription.
    - `variantsCount` integer: The total number of variants available for the product.
    - `options` object[]: The list of configurable options available for the product.
      - `name` string: The name of the product option (for example, Size or Color).
      - `values` string[]: The list of available values for the product option.
      - `position` integer: The position of the option in the product configuration.
  - `code` string: The response code indicating the outcome of the request.
  - `pageInfo` object: Contains pagination metadata for the response.
    - `hasNextPage` boolean: Indicates whether additional pages of products are available.
    - `hasPreviousPage` boolean: Indicates whether a previous page of products is available.

## 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/variant/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)
