Skip to main content
WEBHOOK
voids.succeeded
{
  "code": "00000003",
  "message": "处理中",
  "traceId": "33fae7b7aed1233f",
  "merchantId": "206612664561",
  "notifyTime": "string",
  "notifyType": "string",
  "data": {
    "merchantOrderId": "20230424141154",
    "oriMerchantOrderId": "20230424141154",
    "orderId": "TR1648561479508692992",
    "refundAmount": "100.01",
    "refundCurrency": "USD",
    "country": "US",
    "status": "SUCCESS",
    "completeTime": "2024-07-18T17:19:59.74+08:00"
  }
}
{
  "code": "00000000",
  "message": "成功"
}

Headers

x-eventName
any

通知种类

Example:

"GlobalAccount"

x-timestamp
any
required

毫秒级 Unix 时间戳,例如 1357872222592。

Example:

1357872222592

x-signature
string
required

请求体的 HMAC 十六进制摘要。如果 webhook 配置了 secret,则会发送该头部。该 HMAC 摘要通过 SHA-256 哈希函数和 secret 作为 HMAC 密钥生成。

Body

application/json
code
string
required

响应状态码,code为00000000表示响应成功,其他状态码表示响应失败。具体系统错误码可以参考系统错误码。

Example:

"00000003"

message
string
required

错误消息

Example:

"处理中"

traceId
string
required

请求消息唯一标识。traceId为本次调用产生的流水号,接口调用异常,可以提供此流水号用于排查问题。

Example:

"33fae7b7aed1233f"

merchantId
string
required

商户Id

Maximum string length: 15
Example:

"206612664561"

notifyTime
string
required

通知时间,符合rfc3339规范,格式:yyyy-MM-dd'T'HH:mm:ss.SSSXXX

Maximum string length: 32
notifyType
string
required

通知类型 PAYMENT

Maximum string length: 16
data
object

返回的业务数据

Response

200 - application/json

OK

code
string
required

响应状态码

Example:

"00000000"

message
string
required

错误消息

Example:

"成功"