Skip to main content

Qrcode Sale

Usage

  • Alipay
  • Wechat Payment
  • QR-Code Payment from Bank
  • QR-Code point redeem from Bank
  • QR-Code Payment from China UnionPay
  • Baidu Payment
  • Bestpay
  • Other QR-Code Payment
  • Product coupon/cash coupon/discount coupon/Buy M Get N Free coupon /Deduct coupon
  • Take out or Self booking order

Transaction Flow

  • The transaction process will collect QR code message thru scanning or direct input through keypad, and it will send to e-Buy backend server after collection to further process.

action

  • qrcodeSale

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

FieldTypeMandatoryDescriptionMemo
traceNoStringYesCashier terminal trace no.No repeat
totalAmountPriceYesTotal transaction amountUnit : Dollar
undiscountAmountPriceYesUndiscountable AmountUnit : Dollar
qrcodeStringYesQR-Code串号、一维码或二维码内容
goodsDetailList<goodsDetail>YesGoods detailMandated on goods detail verification
memberDetailObject<memberDetail>NoMember informationMandated for member payment

Request body example

{
    "traceNo": "99000009100010101732123",
    "totalAmount": 40.8,
    "undiscountAmount": 0,
    "qrcode": "280123121234567890",
    "goodsDetail": [
        {
            "goodsCategory": "001",
            "goodsId": "P00001",
            "goodsName": "牙膏",
            "price": 8,
            "quantity": 2,
            "rebateCode": "000"
        },
        {
            "goodsCategory": "101",
            "goodsId": "P00002",
            "goodsName": "洗发水",
            "price": 24.8,
            "quantity": 1,
            "rebateCode": "000"
        }
    ],
    "memberDetail": {
        "memberId": "M000001545",
        "memberName": "TONY",
        "grade": "1",
        "status": "1",
        "balance": 1000.00,
        "pointBalance": 30000
    }
}

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

FieldTypeMandatoryDescriptionMemo
traceNoStringYesCashier terminal trace no.No repeat
orderNoStringYesOrder No. from e-Buymade by Ebuy
transDateStringYesTransaction timeFormat:yyyyMMddHHmmss
returnCodeStringYesReturn code00 represent successful transaction, else represent fail
returnDescStringYesReturn messageDetail explanation / error message per transaction result
paidAmountPriceYesTotal amount paidFace Value. Unit : Dollar
receiptAmountPriceNoMerchant actual received amountNet Value. Unit : Dollar
invoiceAmountPriceNoMerchant invoice amountUnit : Dollar
exchangeRateNumber(8,6)NoExchange RateThe rate of conversion the currency given in the request to CNY.
currencyStringNoCurrencyFor example: CNY
discountCodeStringNoDiscount Codeassigned by Cashier POS
discountNumNumberNonumbers of discountCode用于入账计折扣类型的数量
tenderCodeStringNoTender Codeassigned by Cashier POS,record payment method,like:2016120101|20.00 is payment 20yuan
activityProductNoStringNoActivity Product no. 
activityProductNameStringNoActivity Product name 
goodsDetailList<goodsDetail>NoPaid product detailBackend response paid product detail
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",
    "paidAmount": 40.8,
    "receiptAmount": 40.8,
    "invoiceAmount": 40.8,
    "exchangeRate": 6.0939,
    "currency": "CNY",
    "discountCode": "0001",
    "discountNum": 20,
    "tenderCode": "8001",
    "activityProductNo": "2016123102",
    "activityProductName": "支付宝支付",
    "goodsDetail": [
        {
            "goodsCategory": "001",
            "goodsId": "P00001",
            "goodsName": "牙膏",
            "price": 8,
            "quantity": 2,
            "rebateCode": "000",
            "activityNo": "2016123101",
            "memo": "100123456789"
        },
        {
            "goodsCategory": "101",
            "goodsId": "P00002",
            "goodsName": "洗发水",
            "price": 24.8,
            "quantity": 1,
            "rebateCode": "000",
            "activityNo": "2016123101",
            "memo": "100123456789"
        }
    ],
    "fundChannel": [
        {
            "channelNo": "001",
            "channelName": "用户实付现金",
            "channelAmount": "20.8"
        },
        {
            "channelNo": "002",
            "channelName": "用户积分支付",
            "channelAmount": "20"
        }
    ],
    "printDetail": {
        "cardNo64": "622562****8888",
        "bank": "中国银行",
        "paymentOrderNo": "201612315689412157458787",
        "paymentUser": "139****@163.com",
        "pointSale": "20000",
        "qrCode1": "htt://www.xxx.com/url",
        "qrCode2": "",
        "qrCode3": "",
        "barCode1": "12345679",
        "barCode2": "",
        "barCode3": ""
    },
    "memberDetail": {
        "memberId": "M000001545",
        "memberName": "TONY",
        "grade": "1",
        "status": "1",
        "balance": 1000.00,
        "pointBalance": 30000
    }
}