Remove discount
Changed onThis endpoint allows you to remove any active discount applied to the subscription, restoring it to its original pricing.
delete/2023-10/subscription/{subscriptionId}/discount/{discountShopifyId}
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/discount/{discountShopifyId}
- AuthAPI key in header Authorization
Path parameters
subscriptionIdinteger required
The unique identifier for a subscription in Loop.
discountShopifyIdstring required
Shopify ID of the discount to be removed from the subscription.
Response
200
Example response
{
"success": true,
"message": "Discount removed successfully",
"data": {
"code": "TEST30",
"subscription": {
"id": 1473,
"shopifyId": 345678098723
}
},
"code": "SUCCESS"
}Changes
- info
for the
pathrequest parametersubscriptionId, the format was generalized fromint32toint64 - info
added the optional property
/to the response with the status
- info