1. Cancel
Merchant Connect API
HASE
  • latest
  • HASE
  • Integration Guide
    • EC Payment
      • Merchant API
        • Overview
        • Payment
        • Payment Methods
        • After Payment
          • Capture
          • Cancel
          • Refund
          • Cancel or Refund
          • Accept Notification
        • Features
          • Account Status Inquiry (ASI)
          • COF
          • Recurring
          • Instalment
          • Authentication
            • 3D Secure
            • Authorization only
          • Tokenization
            • Gateway Tokenization
            • Create a gateway token
            • Network Tokenization
            • Pay with gateway token
            • Manage token
    • In-store Payment
      • Merchant API
        • Payment
          • CPM
          • MPM
          • MPM static QR code
        • After Payment
          • Capture
          • Cancel
          • Refund
          • Cancel or Refund
          • Accept Notification
  • API Explorer
    • API Rules
    • PaymentMethod
      • PaymentMethod
      • PaymentMethod
      • PaymentMethod
      • PaymentMethod
    • Payment
      • Payment
      • Payment
      • Payment
    • Capture
      • Capture
      • Capture
    • Cancel
      • Cancel
        POST
      • Cancel
        GET
    • Refund
      • Refund
      • Refund
    • Cryptogram
      • Cryptogram
      • Cryptogram
    • Cancel or Refund
      • Cancel or Refund
      • Cancel or Refund
    • Notification
      • Notification for PaymentMethod
      • Notification for Payment
      • Notification for Capture
      • Notification for Cancel
      • Notification for Refund
      • Notification for MPM Static QR Code
      • Notification for Token Status Update
      • Notification for Cryptogram
    • Appendix
      • Result Code
      • Payment Brands
      • Payment Method Variant
      • Currency list
      • Country and region list
    • HealthCheck
      • HealthCheck
    • TransactionHistoryInquiry
      • TransactionHistoryInquiry
    • Instalment
      • Instalment Plan Inquiry
HASE
  • latest
  • HASE
  1. Cancel

Cancel

POST
/g2/v1/payment/mer/{sid}/cancel

Request

Path Params

Query Params

Header Params

Body Params application/json

Example
{
    "merchantTransInfo": {
        "merchantTransID": "T506061749176188926",
        "merchantTransTime": "2025-06-06T10:16:28+08:00"
    },
    "metadata": "This is a metadata",
    "webhook": "https://YOUR_COMPANY.com/WEBHOOK"
}

Responses

🟢200成功
application/json
Headers

Bodyapplication/json

Example
{
    "cancel": {
        "evoTransInfo": {
            "evoTransID": "pay_250606101628000141502453",
            "evoTransTime": "2025-06-06T02:16:28Z",
            "retrievalReferenceNum": "515710106666",
            "traceNum": "106514"
        },
        "merchantTransInfo": {
            "merchantTransID": "T506061749176188926",
            "merchantTransTime": "2025-06-06T10:16:28+08:00"
        },
        "pspTransInfo": {
            "pspTransTime": "2025-06-06T02:16:28Z",
            "retrievalReferenceNum": "515710106666"
        },
        "status": "Success"
    },
    "metadata": "This is a metadata",
    "payment": {
        "evoTransInfo": {
            "evoTransID": "pay_250606101601000101413960",
            "evoTransTime": "2025-06-06T02:16:01Z",
            "retrievalReferenceNum": "515710106514",
            "traceNum": "106514"
        },
        "merchantTransInfo": {
            "merchantTransID": "T506061749176160353",
            "merchantTransTime": "2025-06-06T10:16:00+08:00"
        },
        "pspTransInfo": {
            "authorizationCode": "041831",
            "pspTransID": "305157081747531",
            "pspTransTime": "2025-06-06T02:16:14Z",
            "retrievalReferenceNum": "515710106514"
        },
        "status": "Cancelled",
        "transAmount": {
            "currency": "HKD",
            "value": "1.00"
        }
    },
    "paymentMethod": {
        "card": {
            "first6No": "402310",
            "fundingType": "credit",
            "issuingCountry": "TWN",
            "last4No": "8012",
            "paymentBrand": "Visa"
        }
    },
    "result": {
        "code": "S0000",
        "message": "Success",
        "pspMessage": "Successful approval/completion or V .I.P .PIN\n verification is successful",
        "pspResponseCode": "00"
    }
}
Previous
Capture
Next
Cancel
Built with