Refund webhooks
The Refund WebHook endpoint is used to receive refund successful notifications from EFundPay. This endpoint should be implemented by merchants to process refund status updates.
POST{notification_url}
This endpoint requires the
webhooks.refund
scope.Headers
timestampstringrequired
UNIX timestamp
Examples:
"20240117193352"
timezonestringrequired
Timezone
Examples:
"Asia/Shanghai"
signaturestringrequired
RSA signature of the body object
Examples:
"ovTdLBu+BN8+NSvEmG/rQARwBgbZuywMAKdH5ShOKKnJU00bG5idAMj5pSe9mcU28HQvJ5+mWkaQS4mTC8N7ZqKEPgIacKo0VQFGUBd2LNO77tmxvBmjrEkSy3BzYyAX7lCvaKfLC7wMw1C1PU3Ku7EiBVo5oIxvwM0kBfh9qZbD62aTzYrfokw0lIYV2wQadzjDMIgeL6KaAI6Yqfb1pdvNXEma9eGUBwf3GAWZzn4JmCVxXJ1rVhe0kY2Xf266nl7doe0NvoT5emIjbCdxRpf2FQyPBy2SUad+FQ3HYm69RL9OK/qC1bpQhu9X90Nd1GlmvaZlsvTCeg/p4hBvkw=="
Body
application/jsonll_transaction_idstringrequired
EFundPay refund order ID
merchant_transaction_idstringrequired
Merchant refund order ID
original_transaction_idstringrequired
Original merchant payment order ID
refund_dataobjectrequired
Refund data
Response
application/json
Successful Response
codestringrequired
response code.
Examples:
"200"
messagestringrequired
response message.
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"}