拒付事件
拒付事件
拒付通知webhook
Header parameters
gateway-noanyRequired
网关号
request-idanyRequired
请求id,30分钟之内唯一
request-timeanyRequired
时间戳,以毫秒(ms)为单位,请求误差不能超过10分钟
sign-infoanyRequired
验签字段,具体验签方式请参阅数据签名过程章节
versionanyRequired
webhook版本号
Body
拒付webhook请求对象
typestringOptionalExample:
webhook事件类型 chargeback.success:拒付成功事件
chargeback.success
Responses
200
OK
*/*
Responsestring
post
POST / HTTP/1.1
Host: {callbackUrl chargeback}
gateway-no: null
request-id: null
request-time: null
sign-info: null
version: null
Content-Type: application/json
Accept: */*
Content-Length: 335
{
"data": {
"amount": 65.12,
"batchNo": 51006,
"chargebackInfo": {
"cpdDate": "2021-04-12T00:00:00",
"replyDeadline": "2021-04-12T00:00:00"
},
"currency": "USD",
"noticeDate": "2021-04-12T00:00:00",
"orderAmount": 100.12,
"orderCurrency": "USD",
"orderNo": 12167001000000000000,
"reason": "reason",
"tradeNo": 2.0210507155918938e+21
},
"type": "chargeback.success"
}
200
OK
text
请求报文示例
curl --request POST \
--url https://{callbackUrl chargeback} \
--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": {
"chargebackInfo": {
"replyDeadline": "2022-06-09 18:00:00",
"cpdDate": "2022-04-12 14:57:07"
},
"reason": "D4755-Non-Receipt of Goods or Services",
"amount": "0.12",
"batchNo": "452537",
"orderAmount": "244.56",
"orderNo": "NEW_API1229990656196",
"tradeNo": "2022040617154768289223",
"orderCurrency": "CNY",
"noticeDate": "2022-04-26 14:58:19",
"currency": "CNY"
},
"type": "chargeback.success"
}'
Last updated