Refund Application Interface

Description

Merchant submit refund request through the refund interface. The interface function is the same as existing Geoswift’s merchant background refund application.

Request Interface

https://apis.geoswift.com/cp/refund

Name Type& Max Description Requirement
merchantId varchar(9) The unique identity of the merchant ID in Geoswift system. M
partnerId varchar(9) The unique ID of the service provider in the Geoswift system C
requestId varchar(50) The order number is generated by the merchant, the order number must be the unique on the transaction platform. Request/order which had been paid or canceled in Geoswift's platform can’t be submitted with the same request ID. M
refundAmount varchar(18) When the refund currency is JPY, KRW or VND, the unit of refundAmount is Yuan, the unit of other currencies is China Fen, 1 Yuan = 100 Fen M
orderId varchar(32) The serial number of the original payment order.(After successful payment,the serialNumber parameter returned by the order submit or query interface) M
notifyUrl varchar(200) Server notification: After successful refund, there would be a notification sent to the address which could be parameterized(the send mechanism reference to "Interface Rules"). Example: “https://www.geoswift.com/callback. action?test=test ” Note: Your server would not receive the notification of refund successfully after completing refund if the parameter value of notifyUrl wasn’t filled in. M
remark varchar(300) Remarks parameter will return along with payment status. O
hmac varchar(500) The result of parameter signature,generated by the merchant.For the method of obtaining hmac,please reference to "Geoswift encryption and decryption process specification" M

The preceding parameter values cannot contain the following special characters: '" &<>()

Sample

{ "requestId": "1624330715201", "refundAmount": "3", "remark": "1", "orderId": "2c9980727a2c6c68017a2dcb60c90082", "notifyUrl": "https://dev-sdk.ehking.com/onlinepay/notify_V3", "merchantId": "G90008005", "hmac": "QyhAtQMiAN7OaYAOnDW/9UsomenrLu8y/uT/a47MPqMxy7BfCS2JmgrnwoX7lqO3DDhHuhCHs5McN 9g5AS5wQiV0MCRdFk7cYRLyU8ljoSbnqUSQkgW9oDK94r9jrYpzd554ViZ2Ggy2VLGrJSGvbSosLBbThQ1xpJX b/v+KSwRUJPPsEFaeYyhkIz+bGZQovl53keZkeg4nTKm2rI3vUl9Rb2CIjgDMqm+/m862faPtWMvd5tDtb+zH2 l0LyGUuFwiSWVw5GymLMWaQKpKltscuOuR6zCXKpvK8fRkD6jsvmvUhElZC++gFNkylLb6BuQaP7OYZ9G1ycCy 2fOZ5zw==" }

Synchronously Returned Parameter Fields

Name Description
merchantId The unique identity of the merchant ID in Geoswift system.
partnerId The unique ID of the service provider in the Geoswift system
requestId The order number is generated by the merchant, the order number must be the unique on the transaction platform. Request/order which had been paid or canceled in Geoswift's platform can’t be submitted with the same request ID.
serialNumber Serial Number of the request in Geoswift's platform
bankRequestNumber bank's serial number
amount Refund amount, when the currency is JPY, KRW or VND, the unit of amount is Yuan, the unit of other currencies is China Fen, 1 Yuan = 100 Fen
currency Refund currency; Reference to the currency list table in the appendix
status SUCCESS(This status represents the request has been successfully submitted to Geoswift rather than successful in refund)
AILED
ERROR
remark
errorMessage Error message
hmac The result of parameter signature, generated by Geoswift. For the signature verification process,please reference to "Geoswift encryption and decryption process specification"

Sample

{ "amount": "1", "currency": "CNY", "merchantId": "G90008005", "remark": "", "requestId": "1624272050465", "serialNumber": "2c9980727a2e129e017a2e2919500007", "status": "SUCCESS", "hmac": "aWXYpj+00QH3hWq4G6nw1s1DcqHU68leHgEMNX5pWqaervKNwvFepp//+qA1X5yJj9wkZGIzPBPZ3M 6RHEBk4ZeV74bdY4TeRz/7FZ+q25YiQuHPqHTHHDfVPV/vofilmkkA1ypg4KqDan/0qo0d9j9QTVGSEvlblBrC1 8iKGYOi9Qg1BUNeUvqvQi2cwAVFpsqFBr9PDuFniiYfIQdvhJUInMkOP2fXnUqsT6v+w0dF4ZxzIjGHB9dzwp1Z TWtec1ZDxETNhfNHhiiwX6YC0/QKnHZn0YQzWLArsN0zPpWLrxI7Q9ghyJYoAkXeJT9TDqwgT4wWaex0BOs3IZh xsw==" }

Asynchronously Returned Parameter Fields

Name Description
merchantId The unique identity of the merchant ID in Geoswift system.
requestId The order number is generated by the merchant, the order number must be the unique on the transaction platform. Request/order which had been paid or canceled in Geoswift's platform can’t be submitted with the same request ID.
serialNumber Serial Number of refund in Geoswift's system.
bankRequestNumber Bank serial number
status SUCCESS
FAILED
amount When the currency is JPY, KRW or VND, the unit of amount is Yuan, the unit of other currencies is China Fen, 1 Yuan = 100 Fen
currency Refund currecy; Reference to the currency list table in the appendix
completeDateTime Completion time
remark remark
actualRefundAmount Actual refund amount,when the actualRefundCurrency is JPY, KRW or VND, the unit of actualRefundAmount is Yuan, the unit of other currencies is China Fen, 1 Yuan = 100 Fen
actualRefundCurrency Reference to the currency list table in the appendix
refundFeeAmount The amount of therefund fee, when the refundFeeCurrency is JPY, KRW or VND, the unit of refundFeeAmount is Yuan, the unit of other currencies is China Fen, 1 Yuan = 100 Fen
refundFeeCurrency Reference to the currency list table in the appendix
errorMessage Error message
hmac The result of parameter signature,generated by Geoswift. For the signature verification process, please reference to "Geoswift encryption and decryption process specification"

Sample

{ "actualRefundAmount":"101", "actualRefundCurrency":"USD", "amount":"101", "completeDateTime":"2021-06-22 14:10:33", "currency":"USD", "merchantId":"G90008005", "remark":"核查拒绝自动退款", "requestId":"2c9980727a31dfd6017a32560ccd0009", "serialNumber":"1624342134096", "status":"SUCCESS", "hmac":"juhgRm/EpquYBqPwW+nMx+Frjxeyi1SZNwOsDkGGb7ytPI2owTHprugBrG5OiJjld8bSHnMHpb+Ml nlXyxXZ1JYUxxwdWfSk9PTNbkdG5cp7DcM0V/Q+vj198+pHSzcd+sisuUzzFs/pK3zXZ3KY4nj5rP8UvqAPnHA sUa5XOxwjF1LabwL8FsPcclnsnop15K11ZGSWfaG0VMKZ6+CjZvIYI/EOqJhS/wgcDVCjFnSscieQb4y8Qbmxz ZBvOWFWbnHpua6GKxl19DAi08Qcr1n87sX9rfWRkJgKxOD6ZXsJi0+Fmsk8S+mgxUhhe0LXZR9XvxzOnCOyvjU RCBu+tA==" }