Skip to main content

Trans Refund(qrcode)

Usage

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

action

  • refundQrcodeSale

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
refundAmountPriceYesRefund AmountUnit:Dollar

Request body example

{
    "traceNo": "99000009100010101732123",
    "originalTraceNo": "99000009100010101732124",
    "refundAmount": 40.8
}

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
refundAmountPriceYesRefunded AmountUnit:Dollar
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",
    "refundAmount": 40.8,
    "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 refund

  • qrcodeSale