# Remove a discount

`DELETE /api/v1/subscriptions/{id}/discounts/{discountId}`

Needs the `subscriptions:write` scope, or a full-access key.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required |  |
| `discountId` | string | required |  |

## Responses

### 200

The removed discount. Emits `subscription.discount_removed`.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "subscription_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "customer_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "coupon_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "promotion_code_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "periods_remaining": {
          "type": [
            "integer",
            "null"
          ],
          "description": "null = forever."
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "ended",
            "removed"
          ]
        },
        "removed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "coupon": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            },
            "name": {
              "type": "string"
            },
            "percent_off": {
              "type": [
                "string",
                "null"
              ],
              "example": "20"
            },
            "amount_off_cents": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^\\d+$",
              "description": "Fixed amount off, minor units.",
              "example": "1999"
            },
            "currency": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "USD",
                "AUD",
                "CAD",
                "GBP",
                "EUR",
                "INR",
                "NPR",
                null
              ],
              "example": "USD"
            },
            "duration": {
              "type": "string",
              "enum": [
                "once",
                "repeating",
                "forever"
              ]
            },
            "duration_in_periods": {
              "type": [
                "integer",
                "null"
              ]
            },
            "applies_to_plan_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
              }
            }
          },
          "required": [
            "id",
            "name",
            "percent_off",
            "amount_off_cents",
            "currency",
            "duration",
            "duration_in_periods",
            "applies_to_plan_ids"
          ]
        }
      },
      "required": [
        "id",
        "subscription_id",
        "customer_id",
        "coupon_id",
        "promotion_code_id",
        "periods_remaining",
        "status",
        "removed_at",
        "created_at",
        "coupon"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
