POST SuNingPay/QRPay

获得门店小程序带金额的动态收款二维码

请求信息

请求URI参数

请求数据参数

付款信息

QRPayInfo
名称说明类型扩展说明
store_no

门店编码.

字符串

必填

字符长度: 必须在 1 和 32 之间

operator

操作员,默认为"QRPAY"

字符串

字符长度: 必须在 1 和 16 之间

amount

本次交易金额,以分为单位,不超过10位纯数字字符串

整数

必填

数值范围: 必须在 1 和 9999999999 之间

order_no

商户单据号,必须在此商户系统内唯一,推荐 机构号+门店号+订单编号

字符串

必填

字符长度: 必须在 1 和 32 之间

iteminfo

商品信息描述

字符串

notify_url

支付后回调地址,可以为空,如果不为空,直接结果将以POST的方式传递到此页面,需要反馈"OK"或者"SUCCESS",若无反馈,系统会20秒一次推送10次直到收到反馈,若10次后未反馈则24小时内每30分钟推送一次直至收到反馈。

字符串

goods_tag

订单优惠标记,代金券或立减优惠功能的参数,配合代金券上订单优惠标记,可以控制订单是否适用指定的代金券

字符串

attach

附加信息,在查询时会原样返回

字符串

字符长度: 必须在 0 和 127 之间

itemlist

商品清单列表

Collection of ItemInfo

qr_format

返回图片格式 默认是png

ImgFormat

请求数据格式

application/json, text/json

例子:
{
  "store_no": "sample string 1",
  "operator": "sample string 3",
  "amount": 4,
  "order_no": "sample string 5",
  "iteminfo": "sample string 6",
  "notify_url": "sample string 7",
  "goods_tag": "sample string 8",
  "attach": "sample string 9",
  "itemlist": [
    {
      "item_id": "sample string 1",
      "item_no": "sample string 2",
      "item_name": "sample string 3",
      "quantity": 4,
      "price": 5,
      "promotion_type": 6
    },
    {
      "item_id": "sample string 1",
      "item_no": "sample string 2",
      "item_name": "sample string 3",
      "quantity": 4,
      "price": 5,
      "promotion_type": 6
    }
  ],
  "qr_format": 10
}

响应数据

资源说明

付款结果

ResultInfoOfString
名称说明类型扩展说明
code

ResultCode

msg

字符串

data

字符串

响应数据格式

application/json, text/json

例子:
{
  "code": "SUCCESS",
  "msg": "sample string 1",
  "data": "sample string 2"
}