⚙️
API Explorer
  • Overview
  • API Reference
    • 交易
      • Sessiontoken
      • customer
      • Payment methods
      • Confirm charge
      • Checkout payment
      • Local payment
    • 授权交易完成/撤销
      • Authorization
    • 拒付
    • 退款
    • 物流
    • 交易查询
    • 网关绑定支付通道查询
    • 结算明细查询
    • 风控-来源网址查询
  • Webhook
    • 概述
    • 交易事件
    • 预授权事件
    • 退款事件
    • 拒付事件
    • 支付结果跳转
  • 附录
    • 数据签名过程
    • 测试账号信息
    • 常见错误码
    • 常见问题
    • 旧版API文档
Powered by GitBook
On this page
  1. Webhook

预授权事件

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

请求报文示例

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",则表示通知成功,否则会继续通知

Previous交易事件Next退款事件

Last updated 2 years ago