预授权事件

当交易发生预授权确认或者取消时,会触发预授权事件

请求报文示例

webhook.sh
curl --request POST \
  --url https://{callbackUrl auth} \
  --header 'Content-Type: application/json' \
  --header 'request-id: 58675' \
  --header 'request-time: 1651888520935' \
  --header 'gateway-no: 12345001' \
  --header 'version: V2022-03' \
  --header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
  --data '{
    "data": {
        "orderAmount": "161.93",
        "orderNo": "NEW_API1651877200154",
        "tradeNo": "2022051209541518440747",
        "orderCurrency": "USD",
        "orderStatus": "success",
        "operationResult": "Success"
    },
    "type": "pre-authorized.captured"
}'

{callbackUrl auth} 地址为交易时填写的 callbackUrl 参数

商户收到该事件通知后,返回"success",则表示通知成功,否则会继续通知

Last updated