文档
测试

扫码支付

POST
/thirdparty/api/pay/authcodetrade

接口描述

扫码支付

请求参数

参数名
类型
描述
必填
channel
int
订单渠道,非必填
可选
gateway
string
支付网关:微信扫码:pay.weixin.micropay,微信小程序:pay.weixin.applets,支付宝扫码:pay.alipay.micropay
必填
authcode
string
支付码
必填
orderid
string
商家订单唯一编号
必填
ordertype
int
订单类型:销售订单:1
必填
ordersubtype
string
订单子类型:收银机订单:pos
必填
shopcode
string
消费者支付门店唯一编号
必填
subject
string
支付描述,将会展示在消费者的支付成功页面
必填
goodsdesc
string
支付商品详情,json
必填
mobile
string
消费者手机号
必填
totalfee
number
支付总金额,单位:元
必填
terminalid
string
收银机机具号
必填
operatorid
string
收银员
必填

响应参数

参数名
类型
描述
必填
code
int
状态码,成功:0
必填
message
string
错误描述
必填
data
object
返回对象
必填
payid
string
支付唯一编码,可由此查询支付状态
必填
orderid
string
示例:
必填
transactionid
string
示例:
必填
gateway
string
示例:
必填
subject
string
示例:
必填
shopcode
string
示例:
必填
terminalid
string
示例:
必填
operatorid
string
示例:
必填
ordertype
int
示例:0
必填
paymode
int
示例:0
必填
status
string
支付状态:("REQUEST", "请求发起"), ("REQUEST_SUCCESS", "请求成功"), ("REQUEST_CLOSE", "交易关闭"), ("FAIL", "支付失败"), ("SUCCESS", "支付成功");
必填
channel
int
示例:0
可选
buyid
string
示例:
可选
totalfee
int
示例:0
可选
tradetime
string
示例:2021-11-23 15:15:17
可选
thirdpartyuseridentity
string
示例:
可选
shroffaccountidentity
string
示例:
可选
banktype
string
示例:
可选
bankcardtype
string
示例:
可选
traceid
string
必填
now
int
当前时间戳
必填

说明 / 示例

请求参数: ```json { "channel": 0, "gateway": "", "authcode": "", "orderid": "", "ordertype": 0, "ordersubtype": "", "shopcode": "", "subject": "", "goodsdesc": "", "mobile": "", "totalfee": 0.00, "terminalid": "", "operatorid": "", "thirdpartyuseridentity": "", "orderexpiretime": "2021-11-23 15:03:46", "profitsharing": false } ``` 返回参数: ```json { "code": 0, "message": "", "data": { "payid": "", "orderid": "", "transactionid": "", "gateway": "", "subject": "", "shopcode": "", "terminalid": "", "operatorid": "", "ordertype": 0, "paymode": 0, "status": "", "channel": 0, "buyid": "", "totalfee": 0.00, "tradetime": "2021-11-23 15:15:17", "thirdpartyuseridentity": "", "shroffaccountidentity": "", "banktype": "", "bankcardtype": "" }, "traceid ": "aa0add714705f0a0 ", "now ": 1620984883345 } ```