---
title: "Changes to Swap line"
method: PUT
path: "/2023-10/subscription/{subscriptionId}/line/{lineId}/swap"
---

# Changes to Swap line

`PUT /2023-10/subscription/{subscriptionId}/line/{lineId}/swap`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 2 revisions.

- **2026-11-03** `1ff6a5700816`: 1 breaking, 2 warning, 11 info

## Changes

- **2026-11-03** `1ff6a5700816`: 1 breaking, 2 warning, 11 info
  - the `data` response's property type changed from no type to `object` for status `200`
  - removed the request property `customDiscount`
  - removed the request property `pricingType`
  - api operation id `swap-line-on-subscription` removed and replaced with `swap-line`
  - added the new optional request property `cancellationFlowId`
  - for the `path` request parameter `lineId`, the format was generalized from `int32` to `int64`
  - for the `path` request parameter `subscriptionId`, the format was generalized from `int32` to `int64`
  - added the non-success response with the status `400`
  - added the optional property `data/id` to the response with the `200` status
  - added the optional property `data/name` to the response with the `200` status
  - added the optional property `data/price` to the response with the `200` status
  - added the optional property `data/quantity` to the response with the `200` status
  - added the optional property `data/shopifyId` to the response with the `200` status
  - added the optional property `pageInfo` to the response with the `200` status

---

[Operation](https://skmtc.dev/loopwork/apis/storefront-api/docs/2023-10/subscription/:subscriptionId/line/:lineId/swap/put.md) - [API](https://skmtc.dev/loopwork/apis/storefront-api.md) - [Page](https://skmtc.dev/loopwork/apis/storefront-api/changes/2023-10/subscription/:subscriptionId/line/:lineId/swap/put)
