Request Refund
Request Body Parameters
application/jsonCommon Request Parameters
bizContent
requestTimeString(13)RequiredMerchant-side request time. Timestamp, in millisecondsdeviceSnString(64)OptionalDevice serial number, used to specify the target POS machine for payment. Required for POS refunddeviceModelString(64)OptionalDevice model, used to specify the target POS machine for payment. Required for POS refundmerchantTransactionIdString(64)RequiredOriginal merchant order serial number, unique identifier of the order, can be used for subsequent order queries and reconciliationmerchantRefundIdString(64)RequiredMerchant refund order serial number, unique identifier of the orderamountString(12)RequiredRefund amount, the precision digits are related to the currency, please check the appendix Transaction CurrencycurrencyString(3)RequiredRefund currency, ISO 4217 three-letter currency code, see appendix Transaction Currency for specific supported currenciescashierDeviceIdString(64)RequiredUnique ID of the cashier device serial number
请求报文示例
{
"accId": "2018092520455210043243",
"bizContent": {
"requestTime": "1748597280752",
"merchantTransactionId": "PMT-15ZSIRMPKT1748591387687",
"merchantRefundId": "REF-15ZSIRMPKT1748591800000",
"deviceSn": "NEC300067041",
"deviceModel": "N950S",
"amount": "121.23",
"currency": "MYR",
"cashierDeviceId": "111"
},
"clientId": "2018092520455210043",
"sign": "6D214AE3A1926127C3240D4F7604130362B2007EB3D81C67C43CB7C9D9D97F4A",
"signType": "SHA256",
"version": "1.0"
}Responses Body Parameters
application/jsonCommon Response Parameters
bizContent
transactionRefundIdString(64)RequiredPingPong refund serial numbermerchantRefundIdString(64)RequiredTransaction serial number on the merchant websitestatusString(32)RequiredTransaction status:- ACCEPT_SUCCESS-Acceptance successful
- FAILED-Failed
- PROCESSING-In progress
响应报文示例
{
"accId": "2018092520455210043243",
"bizContent": {
"merchantRefundId": "REF-15ZSIRMPKT1748591800000",
"transactionRefundId": "OS202505300010000211",
"status": "PROCESSING"
},
"clientId": "2018092520455210043",
"code": "002000",
"description": "Transaction processing"
}