Cancel subscription
Changed onThis endpoint allows you to cancel an active or paused subscription, stopping all future billing and deliveries permanently or until reactivated by the customer or merchant.
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/cancel
- AuthAPI key in header Authorization
Path parameters
The unique identifier of the subscription in Loop.
Request body
Response
200
Example response
{
"success": true,
"message": "Subscription cancelled successfully",
"data": {
"id": 801000,
"shopifyId": 3760324761,
"status": "CANCELLED",
"totalLineItemDiscountedPrice": 90,
"currencyCode": "USD"
},
"code": "SUCCESS"
}Changes
- breaking
the request property
became required - 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
cancel-subscriptionremoved and replaced withcancel - info
added the new optional request property
- 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 - info
added the optional property
to the response with the status
- breaking