Remove discount

Changed on

This 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 URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/discount/{discountShopifyId}
  • Auth
    API 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

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Discount removed successfully",
  "data": {
    "code": "TEST30",
    "subscription": {
      "id": 1473,
      "shopifyId": 345678098723
    }
  },
  "code": "SUCCESS"
}

Changes

    • info

      for the path request parameter subscriptionId, the format was generalized from int32 to int64

    • info

      added the optional property / to the response with the status