# 2. WebPay查询收款状态

# HTTP请求信息

# URL

{domain}/open-api/webpay/detail

# 请求方式

POST

# Content-Type

application/json

# 请求参数

参数名 是否必填 类型 说明
timestamp long 当前时间戳
mchOrderId string 商户订单号,字母+数字,最大长度32

# 响应参数

参数名 类型 说明
payUrl string 还款链接
transactionStatus string 状态 (PENDING / COMPLETED / FAILED)
transactionId string 还款链接交易id
createTime string 还款链接创建时间
mchOrderId string 商户订单号,字母+数字,最大长度32
amount integer 金额,单位分
email string 用户邮箱
notifyUrl string 商户交易通知 URL
redirectUrl string 商户交易重定向 URL
channelCode string 渠道码

# 请求示例

# param 内容

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

如何构造请求体

# 请求体

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

# 响应示例

响应码集合

{
    "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"
    }
}