退款 WebHook
退款 WebHook 用于接收 EFundPay 退款成功通知。商户需实现此接口以处理退款状态更新。
POST{notification_url}
This endpoint requires the
webhooks.refund
scope.Headers
timestampstringrequired
UNIX 时间戳
Examples:
"20240117193352"
timezonestringrequired
时区
Examples:
"Asia/Shanghai"
signaturestringrequired
请求体 RSA 签名
Examples:
"ovTdLBu+BN8+NSvEmG/rQARwBgbZuywMAKdH5ShOKKnJU00bG5idAMj5pSe9mcU28HQvJ5+mWkaQS4mTC8N7ZqKEPgIacKo0VQFGUBd2LNO77tmxvBmjrEkSy3BzYyAX7lCvaKfLC7wMw1C1PU3Ku7EiBVo5oIxvwM0kBfh9qZbD62aTzYrfokw0lIYV2wQadzjDMIgeL6KaAI6Yqfb1pdvNXEma9eGUBwf3GAWZzn4JmCVxXJ1rVhe0kY2Xf266nl7doe0NvoT5emIjbCdxRpf2FQyPBy2SUad+FQ3HYm69RL9OK/qC1bpQhu9X90Nd1GlmvaZlsvTCeg/p4hBvkw=="
Body
application/jsonll_transaction_idstringrequired
EFundPay 退款订单号
merchant_transaction_idstringrequired
商户退款支付单号
original_transaction_idstringrequired
原商户支付单号
refund_dataobjectrequired
退款数据
Response
application/json
Successful Response
codestringrequired
响应码
Examples:
"200"
messagestringrequired
响应消息
Examples:
"SUCCESS"
curl --request POST --url {notification_url} --header 'timestamp: "20240117193352"' --header 'timezone: "Asia/Shanghai"' --header 'signature: "ovTdLBu+BN8...Bvkw=="' --header 'Content-Type: application/json' --data '{"ll_transaction_id": "2022010406411871","merchant_transaction_id": "test2022010110240583981","original_transaction_id": "refund10167310","refund_data": {"account_date": "20220104","actual_refund_amount": 5599,"actual_refund_currency_code": "USD","reason": "do not like the goods","refund_amount": 5599,"refund_currency_code": "USD","refund_status": "RS","refund_time": "20220104180837","settlement_currency_code": "USD"}}'
{"code": "200","message": "SUCCESS"}