# Cancel UPI QR

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/qr-code/{qrCodeId}/cancel:
    patch:
      summary: Cancel UPI QR
      deprecated: false
      description: >-

        :::highlight purple 📌

        Use this API to cancel an existing UPI QR code by its unique ID. Once a
        QR code is cancelled, no payments will be accepted through it, ensuring
        that outdated or invalid payment requests are securely deactivated.

        :::
      tags:
        - Payment Gateway/APIs - Payment Gateway /UPI QR
      parameters:
        - name: qrCodeId
          in: path
          description: unique qrCodeId provided by us in create qrCode API
          required: true
          schema:
            type: string
        - name: merchantAccessKey
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-apidog-refs: {}
              x-apidog-orders: []
              properties: {}
              x-apidog-ignore-properties: []
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationResponseQrCodeResponse'
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Payment Gateway/APIs - Payment Gateway /UPI QR
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-8990263-run
components:
  schemas:
    ApplicationResponseQrCodeResponse:
      type: object
      properties:
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/QrCodeResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    QrCodeResponse:
      type: object
      properties:
        qrCodeId:
          type: string
          description: Unique QrCode Id generated at our end
        qrName:
          type: string
        multipleUse:
          type: boolean
        fixedAmount:
          type: boolean
        amount:
          type: number
        description:
          type: string
        expiry:
          type: string
        customParams:
          type: object
          properties:
            additionalProp1:
              type: string
            additionalProp2:
              type: string
            additionalProp3:
              type: string
          required:
            - additionalProp1
            - additionalProp2
            - additionalProp3
          x-apidog-orders:
            - additionalProp1
            - additionalProp2
            - additionalProp3
          x-apidog-ignore-properties: []
        status:
          type: string
          description: QrCode status
          enum:
            - ACTIVE
            - CANCELLED
          x-apidog-enum:
            - value: ACTIVE
              name: ''
              description: ''
            - value: CANCELLED
              name: ''
              description: ''
        qrCodeBase64:
          type: string
          description: Base64Image of the QrCode
        createdOn:
          type: string
          description: DateTime of the QrCode created
        modifiedOn:
          type: string
          description: DateTime of the QrCode modified
        customerName:
          type: string
        customerEmail:
          type: string
        customerMobile:
          type: string
        customerId:
          type: string
        referenceNumber:
          type: string
      x-apidog-orders:
        - qrCodeId
        - qrName
        - multipleUse
        - fixedAmount
        - amount
        - description
        - expiry
        - customParams
        - status
        - qrCodeBase64
        - createdOn
        - modifiedOn
        - customerName
        - customerEmail
        - customerMobile
        - customerId
        - referenceNumber
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
