a a

Refund API Call

ENDPOINT
https://api-demo.surchx.com/v1/ch/refund

For testing purpose, please use the Test Cards

HEADERS
    Content-Type : application/json
    X-Requested-With : xhr
    Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzE3Mjc2MDAsImlhdCI6MTU2NjUwMDMxOCwibmFtZSI6IkhVR08gRE9DUyAtKERPTlQgREVMRVRFKSIsImlkIjoiNjVlZmJiMjMtNGY4Zi00M2ZjLTk1MDQtODk4YThjZWQzNWNkIn0.ehlu051arjjraE8E5PP8WBM_YBfS2r4CPoS_V_D8hog
REQUEST BODY

Either mTxId/sTxId is mandatory.

{
     "mTxId": "2018-09-26-0000599",
     "sTxId": "5ml635gste9log31t5llq2akg",
     "amount":"100"
}

RESPONSE
{
    "refund": 3.75
}
Nomenclature
NameInformationMandatory
mTxIdMerchant orderId or unique identifier in the Merchant e-commerce scope referencing the Order or Shopping Cart. This field is optional.Yes, if sTxId is not passed
sTxIdUnique identifier in the SurchX system which refers to the persistence state of the Transaction Fee calculation.Yes, if mTxId is not passed
amountRead-only Amount of transactionNo.Required only for partial refunds.