Skip to main content

Trans Void(card)

Usage

  • Invoke this API to reverse a transaction that dedicated by originalTraceNo.

Transaction Flow

  • The requested transaction will send to e-Buy backend server, it will firstly invoke MIS-POS for Card swape and password input. Once MIS-POS confirmed on both inputs, it will send back to e-Buy backend server to process.

action

  • voidCardSale

Request body,Cashier POS===>e-Buy Backend

FieldTypeMandatoryDescriptionMemo
traceNoStringYesCashier terminal trace no.No repeat
originalTraceNoStringYeslast Cashier terminal trace no.Cashier terminal trace no. in last transaction
acquirerStringNoAcquirer BankExample:citicCashpay表示中信收单,如果收单撤销是必填的

Request body example

{
    "traceNo": "99000009100010101732123",
    "originalTraceNo": "99000009100010101732124",
    "acquirer": "citicCashpay"
}

Response body,e-Buy Backend===>Cashier POS

FieldTypeMandatoryDescriptionMemo
traceNoStringYesCashier terminal trace no.No repeat
orderNoStringYesOrder No. from e-Buy 
transDateStringYesTransaction timeFormat:yyyyMMddHHmmss
returnCodeStringYesReturn code00 represent successful transaction, else represent fail
returnDescStringYesReturn messageDetail explanation / error message per transaction result
discountCodeStringNoDiscount Codeassigned by Cashier POS
tenderCodeStringNoTender Codeassigned by Cashier POS,record payment method,like:2016120101|20.00 is payment 20yuan
fundChannelList<fundChannel>NoChannel of fund 
printDetailObject<printDetail>NoPrinting messageProvided if required to print on the receipt
memberDetailObject<memberDetail>NoMember informationMember info return message on this transaction

Response body example

{
    "traceNo": "99000009100010101732123",
    "orderNo": "171698602301",
    "transDate": "20161231120533",
    "returnCode": "00",
    "returnDesc": "SUCCESS",
    "discountCode": "0001",
    "tenderCode": "8001",
    "fundChannel": [
        {
            "channelNo": "001",
            "channelName": "用户实付现金",
            "channelAmount": "20.8"
        },
        {
            "channelNo": "002",
            "channelName": "用户积分支付",
            "channelAmount": "20"
        }
    ],
    "printDetail": {
        "cardNo64": "622562****8888",
        "bank": "中信银行",
        "paymentOrderNo": "201612315689412157458787",
        "pointSale": "20000",
        "qrCode1": "htt://www.api-location-url.com/url",
        "qrCode2": "",
        "qrCode3": "",
        "barCode1": "12345679",
        "barCode2": "",
        "barCode3": ""
    },
    "memberDetail": {
        "memberId": "M000001545",
        "memberName": "TONY",
        "grade": "1",
        "status": "1",
        "balance": 1000.00,
        "pointBalance": 30000
    }
}

Transaction support void

  • cardPayment
  • cardRedemption