# 2. Retrieve WebPay Status

# HTTP request info

# URL

{domain}/open-api/webpay/detail

# Request Method

POST

# Content-Type

application/json

# Request Body

parameter name required type of data description
timestamp Yes long current timestamp
mchOrderId Yes string merchant order ID, alphanumeric, max length 32

# Response parameters

parameter name type of data description
payUrl string order payment link
transactionStatus string order payment status (PENDING / COMPLETED / FAILED)
transactionId string transaction ID
createTime string transaction create time
mchOrderId string merchant order ID, alphanumeric, max length 32
amount integer amount, the unit is cent
email string customer email address
notifyUrl string merchant payment notification URL
redirectUrl string payment redirect URL
channelCode string channel code

# Request example

# Param content

{
  "timestamp": 1676017834369,
  "mchOrderId": "EXAMPLE00000001"
}

How to construct request body

# Request body

{
  "appId": "c9b002aef1d7496c9df078d937896605",
  "sign": "uK5sk3kM5vhSP3BJPwArK7239TTP1fwIp2CyZLE4c0JdsfwJTpTyU5l2oCj2XJssqc4MUHY7zWyU+HRPzVa/LvXnjxdHvtpJ5o0VHUz8EMDT4r3SgQLsp9GYodYOUpGmu/F+DH3I6XUGRASiownoEDA6f4C2QAahGFK+Tg+m5cGSW1aLlEOw6b7doAz4U8/oZS33qbd+T3NLwkKwsigBA3Y56fKNrO7gxIoPZpdni0QJjPgJTDwzp5fouUnTu8GRhcnXhL4OzWBHboTlkSl26y0X8yPavKwbH7++oxPW5JzfebEj2aKpV++0b5YWHeC+iCM/diXIwK6XEPdCm2G6iw==",
  "param": "{\"timestamp\":1676017834369,\"mchOrderId\":\"EXAMPLE00000001\"}"
}

# Response example

code collection

{
    "code": 10000,
    "message": "Success",
    "data": {
        "mchOrderId": "EXAMPLE00000001",
        "transactionId": "C4Z9027219994120192",
        "amount": 100,
        "transactionStatus": "COMPLETED",
        "createTime": "2024-06-07 17:34:48",
        "returnTime": "2024-06-07 17:35:40",
        "customerName": "Jason",
        "channelCode": "TRUEMONEY_URL",
        "email": "jasonbourne@gmail.com",
        "notifyUrl": "https://example.com",
        "redirectUrl": "https://example.com",
        "payUrl": "https://tmn-dev.app.link/commoncashier?deeplink=ascendmoney%3A%2F%2Fwallet.truemoney.co.th%2Fapp%2F660000000012%3Ftype%3Dcommoncashier%26method%3D2a5f57df31dfc80e154ef2f04908442c"
    }
}