---
updatedAt: 2026-08-12T06:45:04.000Z
agentTools:
  projectIndex: https://developer.loopwork.co/llms.txt
---

# Remove discount

This endpoint removes a discount code from the specified subscription contract.

**Rate limit&#x20;**- Global pool (i.e. 50 requests per second per domain)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "loop-admin",
    "version": "2023-10"
  },
  "servers": [
    {
      "url": "https://api.loopsubscriptions.com/admin/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Loop-Token",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/2026-04/subscription/{subscriptionId}/discount/{discountShopifyId}": {
      "delete": {
        "responses": {
          "200": {
            "description": "Discount removed successfully",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "message": "Discount removed successfully",
                      "data": {
                        "shopifyId": null,
                        "code": "TEST101"
                      },
                      "code": "SUCCESS",
                      "pageInfo": null
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Discount removed successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "shopifyId": {},
                        "code": {
                          "type": "string",
                          "example": "TEST101"
                        }
                      }
                    },
                    "code": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "pageInfo": {}
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true,
            "description": "The subscriptionId on which the discount has to be removed"
          },
          {
            "in": "path",
            "name": "discountShopifyId",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true,
            "description": "The shopify id of the the discount which has to be removed"
          }
        ],
        "summary": "Remove discount",
        "operationId": "delete_2026-04-subscription-subscriptionid-discount-discountshopifyid",
        "description": "This endpoint removes a discount code from the specified subscription contract."
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```