Card Operations
Use this call to process a refund to a settled charge. You will need the Transaction ID and the amount to be refunded.
A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.
A1842D663E9A4A72XXXXXXXX303541303234373138
application/json
application/json
Transaction ID of the charge to be refunded
56
Amount to be refunded
5
POST /APIcardProcREST/v1.0.0/CardSale/ApplyCredit HTTP/1.1
Host: easypay5.com
SessKey: A1842D663E9A4A72XXXXXXXX303541303234373138
Content-Type: application/json
Accept: application/json
Content-Length: 28
{
"TxID": 56,
"CreditAmount": 5
}
Successful processing of the refund
{
"Transaction_ApplyCreditResult": {
"ErrCode": 0,
"ErrMsg": "",
"FunctionOk": true,
"RespMsg": "Successful Credit Pending Transaction ID : 000057",
"TxApproved": true,
"TxID": 57
}
}
Use this call to void a pending charge. The status of the transaction needs to be OPEN, such as transactions that have not settled yet. To refund a transaction that was previously settled, use the Credit method. You will need the Transaction ID of the charge to be voided.
A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.
A1842D663E9A4A72XXXXXXXX303541303234373138
application/json
application/json
Transaction ID of the charge to be voided
53
POST /APIcardProcREST/v1.0.0/CardSale/Void HTTP/1.1
Host: easypay5.com
SessKey: A1842D663E9A4A72XXXXXXXX303541303234373138
Content-Type: application/json
Accept: application/json
Content-Length: 11
{
"TxID": 53
}
Successful voiding of the transaction
{
"Transaction_VoidResult": {
"ErrCode": 0,
"ErrMsg": "",
"FunctionOk": true,
"RespMsg": "Successful Transaction Void TxID : 53 [097706]",
"TxApproved": true,
"TxID": 53
}
}
Last updated
Was this helpful?