---
updatedAt: 2026-04-22T13:20:58.000Z
agentTools:
  projectIndex: https://docs.awtomic.com/llms.txt
---

# Remove discount code from subscription

Remove a discount code from a subscription contract.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Awtomic API",
    "description": "Reference for Awtomic API",
    "version": "0.0.0",
    "contact": {
      "email": "eng@awtomic.com"
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "samples-enabled": true,
    "samples-languages": [
      "curl",
      "node-simple",
      "python",
      "php",
      "go",
      "ruby"
    ]
  },
  "servers": [
    {
      "url": "https://api.awtomic.com/"
    }
  ],
  "tags": [
    {
      "name": "Subscriptions",
      "description": "Endpoints for managing subscriptions"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "paths": {
    "/customers/{customerId}/subscriptions/{subscriptionId}/delete-discounts": {
      "post": {
        "operationId": "deleteDiscountFromSubscription",
        "tags": [
          "Subscriptions"
        ],
        "summary": "Remove discount code from subscription",
        "description": "Remove a discount code from a subscription contract.\n",
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "required": true,
            "description": "Customer Id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "description": "Subscription Id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "discountId": {
                    "type": "string"
                  },
                  "discountCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "discountId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Discount code deleted"
          },
          "400": {
            "description": "Validation error"
          }
        }
      }
    }
  }
}
```