Swap line
Changed onThis endpoint allows you to replace an existing product in the subscription with a new product.
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/line/{lineId}/swap
- AuthAPI key in header Authorization
Path parameters
The unique identifier for a subscription in Loop.
The unique identifier for the line in Loop.
Request body
Response
200
Example response
{
"success": true,
"message": "Line swapped successfully",
"data": {
"id": 2320007,
"name": "A Ring - 6",
"shopifyId": "b0e30ff1-8742-43c8-b152-fad393bd75e0",
"quantity": 2,
"price": "9.00"
},
"code": "SUCCESS"
}Changes
- breaking
the
response's property type changed from no type toobjectfor status - warning
removed the request property
- warning
removed the request property
- info
api operation id
swap-line-on-subscriptionremoved and replaced withswap-line - info
added the new optional request property
- info
for the
pathrequest parameterlineId, the format was generalized fromint32toint64 - info
for the
pathrequest parametersubscriptionId, the format was generalized fromint32toint64 - info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- breaking