maib MIA QR API
EN
EN
  • Overview
    • General Technical Specifications
    • MIA QR Types
  • Endpoints
    • Authentication
      • Obtain Authentication Token
    • Payment Initiation
      • Create QR Code (Static, Dynamic)
      • Create Hybrid QR Code
        • Create Extension for QR Code by ID
    • Payment Cancellation
      • Cancel Active QR (Static, Dynamic)
      • Cancel Active QR Extension (Hybrid)
    • Payment Refund
      • Refund Completed Payment
    • Information Retrieval (GET)
      • Display List of QR Codes with Filtering Options
      • Retrieve QR Details by ID
      • Retrieve List of Payments with Filtering Options
      • Retrieve Payment Details by ID
  • Payment Simulation (Sandbox)
  • Notifications on Callback URL
  • Errors
    • API Errors
    • HTTP Status Codes
  • Glossary
  • maib e-commerce API
Powered by GitBook
On this page
  1. Endpoints

Payment Cancellation

QR code payment cancellation allows invalidating an active QR code that has not yet been used to complete a transaction. This process is useful when the customer's order is modified, canceled, or expires before payment is made.

There are two main scenarios for payment cancellation:

  1. Cancel active QR code (Static/Dynamic) Endpoint: POST /v2/mia/qr/{qrId}/cancel Used to cancel a standard QR code (static or dynamic) that is active but has not yet been used for payment. After cancellation, the QR code becomes inactive and cannot be used anymore. The cancellation reason is sent in the request body. The response contains the QR code status (Cancelled), confirming successful processing.

  2. Cancel active extension for Hybrid QR Endpoint: POST /v2/mia/qr/{qrId}/extension/cancel Applies only to Hybrid QR codes that have been extended (e.g., reused for a different order). This action revokes the active extension without fully canceling the original QR code. Optionally, a cancellation reason for the extension can be provided. The response contains the QR code status (Cancelled), confirming successful processing.

Note: Canceling a QR code does not affect payments already processed. If a payment has already been made, cancellation cannot be applied retroactively.

PreviousCreate Extension for QR Code by IDNextCancel Active QR (Static, Dynamic)

Last updated 1 day ago