Refund
Process the payment refund. This API implement is necessary.
Request
Header
Item | Mandatory | Data Type | Sample | Description |
Method | YES | String(5) | 31800 | Fill in 31800 (EasyCard transaction) |
ServiceType | YES | String | Refund | Selected Scan2Pay Service type |
MchId | YES | String | Account0001 | Merchant ID provided by intella |
TradeKey | YES | String | sha256...hash | Marchant password provided by intella, this password must be encoded by SHA256 |
CreateTime | YES | String | 20180101120000 | Request time, the format is "yyyyMMddHHmmss" |
Data
Item | Mandatory | Data Type | Sample | Description |
DeviceId | YES | String | 01301234 | Terminal (reader) number |
Retry | YES | String | 0 | Retry Times, Fill in 0 |
Amount | YES | String | 10 | Refund amount, has to match the transaction amount of the original order |
StoreOrderNo | YES | String | PO180101001 | Original order number |
RefundKey | YES | String | sha256...hash | Refund password (encoded by sha256) |
Response
Header
Item | Data Type | Sample | Description |
StatusCode | String(4) | 0000 | |
StatusDesc | String | Success | Description of transaction status |
Method | String(5) | 31800 | Payment method code (EasyCard payment is 31800) |
ServiceType | String | Refund | Selected Scan2Pay Service type |
MchId | String | Account0001 | Merchant ID |
ResponseTime | String | 20180101120000 | Transaction response time, the format is “yyyyMMddHHmmss” |
Data
Item | Data Type | Sample | Description |
EZCardID | String | 934528053 | Internal card number |
EZCardType | String | 00 | |
PersonalProfile | String | 00 | |
CardNumberForPrint | String | 934528053 | |
Amount | String | 10 | Payment amount |
Balance | String | 4000 | Balance after payment |
BeforeTXNBalance | String | 3990 | Balance before payment |
TerminalTXNNumber | String | 231741 | |
HostSerialNumber | String | 231741 | |
Time | String | 231741 | |
Date | String | 20180612 | |
ExpiryDate | String | 20191230 | |
CPUPurseVersion | String | 00 | |
BankCode | String | 00 | |
AreaCode | String | 01 | |
AutoTopUpAmount | String | 0 | |
TXNResult | String | Success | Transaction result |
Retry | String | 0 | |
ErrorCode | String | 000000 | |
DongleDeviceID | String | 08100DE0A57E | |
RRNumber | String | 18061223174102 | |
TXNType | String | Refund | |
NewAESKey | String | 38e5c9f5...b830 | |
DeviceNumber | String | 0830000001304104 | |
request | JSON |
API Example
Request
Response
Last updated