Enkash Developer Portal
Home
Home
Login
  1. UPI QR
  • Back to home
  • Payment Gateway APIs
  • Authorisation
    • Get Authorization Token
  • Order
    • Create Order
    • Get Order Status
    • Get Order By Merchant Order Id
    • Get BNPL Payment Methods
    • Get Dynamic UPI QR
    • UPI Intent Links
  • Payment
    • Submit Payment Request
    • Get Transaction Status
    • Validate OTP
    • Resend OTP
    • Payment Notify Request
    • Get UPI Transaction Status
    • Verify UPI VPA
  • Refund
    • Refund
  • Settlement
    • Get Settlement Payout By ID
    • Search Settlement Payouts
  • Split Settlement
    • Create Split Settlement Account
    • Update Split Settlement Account
    • Get All Split Settlement Account
    • Deactivate Split Settlement Account
    • Activate Split Settlement Account
    • Submit Payment with Split Details
    • Edit Or Deferred Split Settlement
  • E-Commerce Plugins
  • UPI QR
    • Create UPI QR
      POST
    • Get UPI QR
      GET
    • Search UPI QR
      POST
    • Create Customer
      POST
    • Search Customer
      POST
    • Cancel UPI QR
      PATCH
  • UPI Autopay
    • Create UPI Mandate
    • Update UPI Mandate
    • Revoke UPI Mandate
    • Get UPI Mandate
    • UPI Mandate Callback
    • Mandate Pre-debit Notification
    • Execute Mandate Debit
    • Mandate Debit Callback
  • Payment Links
    • Payment Link APIs
    • Create Payment Link
    • Get Payment Link Details
    • Delete Payment Link
    • Webhook Request
  1. UPI QR

Cancel UPI QR

Developing
PATCH
/api/v0/qr-code/{qrCodeId}/cancel
📌
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.

Request

Path Params
qrCodeId
string 
required
unique qrCodeId provided by us in create qrCode API
Header Params
merchantAccessKey
string 
optional
Authorization
string 
optional
Body Params application/json
object {0}
Example
{}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/v0/qr-code//cancel' \
--header 'merchantAccessKey;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{}'

Responses

🟢200Success
application/json
Body
response_code
integer <int32>
optional
response_message
string 
optional
payload
object (QrCodeResponse) 
optional
qrCodeId
string 
optional
Unique QrCode Id generated at our end
qrName
string 
optional
multipleUse
boolean 
optional
fixedAmount
boolean 
optional
amount
number 
optional
description
string 
optional
expiry
string 
optional
customParams
object 
optional
status
enum<string> 
optional
QrCode status
Allowed values:
ACTIVECANCELLED
qrCodeBase64
string 
optional
Base64Image of the QrCode
createdOn
string 
optional
DateTime of the QrCode created
modifiedOn
string 
optional
DateTime of the QrCode modified
customerName
string 
optional
customerEmail
string 
optional
customerMobile
string 
optional
customerId
string 
optional
referenceNumber
string 
optional
Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "qrCodeId": "string",
        "qrName": "string",
        "multipleUse": true,
        "fixedAmount": true,
        "amount": 0,
        "description": "string",
        "expiry": "string",
        "customParams": {
            "additionalProp1": "string",
            "additionalProp2": "string",
            "additionalProp3": "string"
        },
        "status": "ACTIVE",
        "qrCodeBase64": "string",
        "createdOn": "string",
        "modifiedOn": "string",
        "customerName": "string",
        "customerEmail": "string",
        "customerMobile": "string",
        "customerId": "string",
        "referenceNumber": "string"
    }
}
Modified at 2025-07-05 12:23:03
Previous
Search Customer
Next
UPI Autopay
Built with