> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plugtopay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a coupon

> Soft-deletes a coupon. Existing subscriptions that already applied it are not affected.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/v1/subscriptions/coupons/{uuid}
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/subscriptions/coupons/{uuid}:
    delete:
      tags:
        - Coupons
      summary: Delete a coupon
      description: >-
        Soft-deletes a coupon. Existing subscriptions that already applied it
        are not affected.
      operationId: e8c7de5adadf2a13fcd32b8fa42812ae
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Coupon deleted
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: Coupon deleted successfully.
                type: object
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Coupon not found
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````