开放平台

打开页面:获取商家配置了那些支付方式,门店商户活动列表(满减 规则),会员信息

请求地址(POST)

https://openapi.1card1.cn/VipCloud/Get_UpayParamInfo?openId=[OpenId]&signature=[Signature]&timestamp=[TimeStamp]

字段 说明
OpenId 登陆开放平台生成的OpenId
Signature 签名=md5(OpenId+Secret+Timestamp+data),格式:32位md5大写加密
TimeStamp 发起请求的时间戳,查看标准timestamp

请求说明

data={"thirdOpenId": "og_8Zwl8LPgeY7pIIMziii5Apd7I","deviceType":1,"userAccount":"10000","totalMoney":100,"subductionCash":0}

字段 是否必须 说明
deviceType 用户类型(1,微信;2,支付宝)
thirdOpenId 绑定类型Id
userAccount 工号
totalMoney 支付总金额
subductionCash 支付不优惠金额

返回说明

成功时返回:

{"status":0,"message":"获取成功","preferentialType":3,"payType":55,"uPayMutex":0,"activityName":"","activityType":0, "activityBody":"{\"CashNormal\":{\"xmlns:xsd\":\"http://www.w3.org/2001/XMLSchema\",\"xmlns:xsi\":\"http://www.w3.org/2001/XMLSchema-instance\", \"Tag\":\"cf80045d-d5fe-4093-ba67-1ad256f9f4db\"}}","memberDicount":0.0100,"enableMemberDiscount":true,"couponConsumeMaxRate":1.0,"isAllowMultiCoupon":true, "couponList":[{"couponSendNoteGuid":"d5a09ae6-bb8e-e711-a46b-7c0507895043","couponType":3,"couponValue":0.8,"minConsumeValue":20.0,"title":"折扣券"}, {"couponSendNoteGuid":"faef3990-b084-e711-a46b-7c0507895043","couponType":3,"couponValue":0.8,"minConsumeValue":20.0,"title":"折扣券"},{"couponSendNoteGuid" :"6ceae58b-b307-e811-acb5-7c0507895043","couponType":2,"couponValue":50.0,"minConsumeValue":30.0,"title":"50代金券"},{"couponSendNoteGuid":"6deae58b-b307-e811-acb5-7c0507895043", "couponType":2,"couponValue":50.0,"minConsumeValue":30.0,"title":"50代金券"},{"couponSendNoteGuid":"1cec3292-b307-e811-acb5-7c0507895043","couponType":2,"couponValue":20.0, "minConsumeValue":20.0,"title":"20代金券满20可用"},{"couponSendNoteGuid":"1dec3292-b307-e811-acb5-7c0507895043","couponType":2,"couponValue":20.0,"minConsumeValue":20.0,"title":"20代金券满20可用"}], "availablePoint":2532.16,"pointPerYuan":10.0,"paidMoneyMaxRate":0.1000,"cardId":"18520830250"}

失败时返回:

{"status":-1,"message":"传入信息错误"}

字段 是否必须 说明
status 状态(0,成功;-1,失败)
message 请求失败及原因
isNeedMember 是否开启先开卡再买单
isAutoRegister 是否开启支付即会员(若返回null 时则为否)
payType 支付方式 可能返回的值 1,2,3,4... (支付宝支付type:1,微信支付type:2, 储值:4, 积分:8, 优惠券:64) 判断使用 payType & 支付方式类型type >0 则允许使用
uPayMutex 优惠互斥 (1:优惠活动;2:优惠券;4:会员折扣;8:积分低扣;储值:16),判断是否启用互斥 使用 uPayMutex & type >0 则允许使用
activityGuid 活动唯一标识GUID
activityName 活动名称(为空时,则是商家未设置)
activityType 活动类型(0:原价;1:每满减)
activityBody 满减设置实体(string类型,xml格式)
memberDicount 折扣系数
enableMemberDiscount 是否开启会员折扣
couponList 优惠券列表[{couponSendNoteGuid:优惠券发送记录唯一标识, couponType: 券类型(2,代金券3,折扣券)couponValue:金额(若是代金券则是抵扣金额,若是折扣券则是折数),minConsumeValue:最小消费金额, title:券名称}]
couponConsumeMaxRate 代金券最大抵扣比例
isAllowMultiCoupon 是否允许选择多张券(折扣券只能选择一张,代金券则看根据该参数是否允许选择多张)
pointPerYuan 积分兑换比例,如pointPerYuan=100时,即100积分兑换1元
paidMoneyMaxRate 积分最大抵扣值
availablePoint 会员可用积分
availableValue 会员可用储值
cardId 会员卡号
uPayDiscount 优惠活动抵扣
paidCoupon 优惠券抵扣
paidPoint 积分抵扣
usedPoint 使用积分
paidValue 储值支付金额
payCash 其它支付
usedCouponList 最优 使用的优惠券列表 Json字符串(couponSendNoteGuid:优惠券发送记录唯一标识 (通过接口“获取已发送优惠券”获得“Guid”字段) ;count:核销数量)
activityRule 最优门店商户活动规则说明

获取买单相关信息 调试