Add line
Changed onThis endpoint allows you to permanently adds a product to a subscription, ensuring it recurs in all future orders until removed.
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/line
- AuthAPI key in header Authorization
Path parameters
The unique identifier of the subscription in Loop.
Request body
Response
200
Example response
{
"success": true,
"message": "Line added successfully",
"data": {
"id": 2473902,
"name": "A Ring - 6",
"shopifyId": "6c2390a0-2d7d-4ce9-9cb0-2a08e7c8c10d",
"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
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- 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