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

# Delete a coupon redemption by ID

> Delete a specific redemption by redemption ID.



## OpenAPI

````yaml redemptions.openapi delete /coupons/{couponId}/redemptions/{redemptionId}
openapi: 3.0.0
info:
  title: Offers - Redemptions
  description: >-
    fabric Redemption API lets shoppers use a coupon to get discount or other
    benefit, configured on the coupon, during checkout. These endpoints let
    merchants create and manage such redemption records.
  version: 3.0.0
  x-audience: external-public
  termsOfService: https://fabric.inc/terms-of-use
  contact:
    name: Offers support
    email: support@fabric.inc
  license:
    name: fabric API License
    url: https://fabric.inc/api-license
servers:
  - url: https://api.fabric.inc/v3
    description: Production environment
security: []
externalDocs:
  description: Find out more about Offers
  url: https://developer.fabric.inc/docs/offers-overview
paths:
  /coupons/{couponId}/redemptions/{redemptionId}:
    delete:
      tags:
        - Redemptions
      summary: Delete a coupon redemption by ID
      description: Delete a specific redemption by redemption ID.
      operationId: deleteRedemptionDeprecated
      parameters:
        - $ref: '#/components/parameters/xFabricTenantId'
        - $ref: '#/components/parameters/xFabricChannelId'
        - $ref: '#/components/parameters/xClientId'
        - $ref: '#/components/parameters/xFabricRequestId'
        - name: couponId
          in: path
          description: >-
            A 24-character system-generated coupon ID generated using the
            [create coupon](/v3/api-reference/offers/coupons/create-coupon)
            endpoint.
          required: true
          schema:
            type: string
            example: 614b58924e92f6861ac9d43b
        - name: redemptionId
          in: path
          description: >-
            The redemption ID generated using the [create redemption with coupon
            ID](/v3/api-reference/offers/redemptions/create-redemption) endpoint
            to delete the redemption.
          required: true
          schema:
            type: string
            example: 614b58924e92f6861ac9d43b
      responses:
        '200':
          description: OK
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/xFabricRequestIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/deleteRedemptionResponse'
        '400':
          description: Bad request
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/xFabricRequestIdResponse'
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/redemptionIdNotValid'
                  - $ref: '#/components/schemas/couponIdNotValid'
                  - $ref: '#/components/schemas/missingTenantHeader'
                  - $ref: '#/components/schemas/error400'
        '401':
          description: Unauthorized
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/xFabricRequestIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error401'
        '404':
          description: Not Found
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/xFabricRequestIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/redemptionNotFound'
        '500':
          description: Internal server error
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/xFabricRequestIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error500'
      deprecated: true
      security:
        - AuthorizationToken: []
components:
  parameters:
    xFabricTenantId:
      in: header
      name: x-fabric-tenant-id
      schema:
        type: string
        minLength: 24
        maxLength: 24
      required: true
      example: 5f328bf0b5f328bf0b5f328b
      description: >-
        A header used by fabric to identify the tenant making the request. You
        must include tenant id in the authentication header for an API request
        to access any of fabric’s endpoints. You can retrieve the tenant id ,
        which is also called account id, from
        [Copilot](/v3/platform/settings/account-details/getting-the-account-id).
        This header is required.
    xFabricChannelId:
      in: header
      name: x-fabric-channel-id
      schema:
        type: string
        example: '12'
      description: >-
        x-fabric-channel-id identifies the sales channel where the API request
        is being made; primarily for multichannel use cases. The channel ids are
        12 corresponding to US and 13 corresponding to Canada. The default
        channel id is 12. This field is required.
    xClientId:
      in: header
      name: x-client-id
      schema:
        type: string
      required: false
      example: copilot
      description: >-
        A unique identifier obtained from
        [Copilot](/v3/platform/settings/api-apps/getting-system-app-credentials)
        for the System app in the fabric ecosystem, essential for OpenID Connect
        authentication flows.
    xFabricRequestId:
      in: header
      name: x-fabric-request-id
      description: A unique request ID.
      required: false
      schema:
        type: string
        example: 263e731c-45c8-11ed-b878-0242ac120002
  headers:
    xFabricRequestIdResponse:
      description: Unique request ID
      schema:
        type: string
        example: 263e731c-45c8-11ed-b878-0242ac120002
  schemas:
    deleteRedemptionResponse:
      type: object
      description: Deleted redemption
      required:
        - id
        - isDeleted
      properties:
        id:
          description: Redemption ID
          type: string
          example: 614b58924e92f6861ac9d43b
        isDeleted:
          description: |
            - `true`: Redemption is deleted.
            - `false`: Redemption isn't deleted.
          type: boolean
          example: true
    redemptionIdNotValid:
      type: object
      description: Invalid redemption ID
      properties:
        type:
          description: The error code.
          type: string
          example: REDEMPTION_ID_NOT_VALID
        message:
          description: An error message corresponding to the `type`
          type: string
          example: Redemption ID isn't valid, it needs must be a valid Object ID
    couponIdNotValid:
      type: object
      description: Invalid coupon ID
      properties:
        type:
          description: The error code.
          type: string
          example: COUPON_ID_NOT_VALID
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: Coupon ID isn't valid, it must be a valid Object ID
    missingTenantHeader:
      type: object
      description: Tenant header is missing
      properties:
        type:
          description: The error code.
          type: string
          example: TENANT_HEADER_REQUIRED
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: x-fabric-tenant-id header is required
    error400:
      type: object
      description: Bad request error
      properties:
        type:
          description: The error code.
          type: string
          example: BAD_REQUEST
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: Bad request
    error401:
      type: object
      description: Unauthorized error
      properties:
        type:
          description: The error code.
          type: string
          example: UNAUTHORIZED
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: Invalid credentials
    redemptionNotFound:
      type: object
      description: Redemption not found
      properties:
        type:
          description: The error code.
          type: string
          example: REDEMPTION_NOT_FOUND
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: The redemption record doesn't exist.
    error500:
      type: object
      description: Internal server error
      properties:
        type:
          description: The error code.
          type: string
          example: INTERNAL_SERVER_ERROR
        message:
          description: An error message corresponding to the `type`.
          type: string
          example: Internal server error
  securitySchemes:
    AuthorizationToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````