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

# Delete Coupon

> Deletes a coupon from the payment provider and local records.



## OpenAPI

````yaml /openapi.json delete /coupons/{provider_coupon_id}
openapi: 3.1.0
info:
  title: OpenLoop API
  version: 0.1.0
  description: >-
    Unified reference for the OpenLoop Patient (clinical) and Payments & Revenue
    APIs.
servers:
  - url: https://api.openloophealth.com/v0.1
    description: Production partner edge
  - url: https://api-staging.openloophealth.com/v0.1
    description: Staging partner edge (sandbox credentials)
security: []
paths:
  /coupons/{provider_coupon_id}:
    delete:
      tags:
        - Coupons
      summary: Delete Coupon
      description: Deletes a coupon from the payment provider and local records.
      parameters:
        - in: path
          name: provider_coupon_id
          required: true
          schema:
            type: string
          description: Unique coupon identifier.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Deleted coupon ID.
                      object:
                        type: string
                        description: Always `"coupon"`.
                      deleted:
                        type: boolean
                        description: Always `true`.
                required:
                  - data
              example:
                data:
                  id: test_coupon_id
                  object: coupon
                  deleted: true
        '400':
          description: 'ValidationError: Missing `coupon_id`.'
        '401':
          description: Missing or invalid bearer token.
        '403':
          description: >-
            No configuration exists for your account, or provider access has
            been disabled for it.
        '404':
          description: 'NotFoundError: Coupon or config not found.'
        '500':
          description: Payment provider integration error.
      security:
        - serviceToken: []
        - userToken: []
components:
  securitySchemes:
    serviceToken:
      type: oauth2
      description: >-
        Service (M2M) access token issued by POST /auth/token using the
        client_credentials grant. Required scopes, where known, are listed on
        each operation below.
      flows:
        clientCredentials:
          tokenUrl: https://api.openloophealth.com/v0.1/auth/token
          scopes: {}
    userToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        User access token issued by POST /auth/token via the verification-code
        grant (after Verify a one-time code) or the refresh_token grant.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.