接口地址:https://dms-api.shopoint.cn/shopoint-openapis-web/szyx/apiweb/unitorder/authcodetouserid
测试地址:https://dms-api-test.shopoint.cn/shopoint-openapis-web/szyx/apiweb/unitorder/authcodetouserid
使用场景:
通过微信付款码换取openid。
通过银联userAuth的code(非付款码)换取userid。
请求参数
字段ID |
字段名称 |
取值 |
可空 |
最大长度 |
备注 |
appid |
应用ID |
平台分配的APPID |
否 |
20 |
|
orgid |
机构ID |
实际交易的机构ID |
是 |
11 |
服务商appid调用时必填 |
cusid |
商户号 |
实际交易的店铺ID |
否 |
11 |
|
version |
版本号 |
接口版本号 |
是 |
2 |
默认填11 |
randomstr |
随机字符串 |
商户自行生成的随机字符串 |
否 |
32 |
|
authcode |
授权码 |
|
否 |
32 |
|
authtype |
授权码类型 |
01-微信付款码 02-银联userAuth |
否 |
2 |
|
identify |
云闪付UA标识 |
当authtype=02时选送 |
是 |
32 |
当APP为云闪付时,默认送空。如为其他云闪付系APP,如京东金融,商业银行APP,按照银联要求送对应UA标识 |
sub_appid |
微信支付appid |
|
是 |
16 |
针对01有效 |
signtype |
签名方式 |
|
是 |
8 |
RSA、SM2 |
sign |
签名 |
详见安全规范 |
否 |
32 |
|
响应参数
字段ID |
字段名称 |
取值 |
可空 |
最大长度 |
备注 |
||
retcode |
返回码 |
SUCCESS/FAIL |
否 |
8 |
|
||
retmsg |
返回码说明 |
|
是 |
100 |
|
||
以下信息只有当retcode为SUCCESS时有返回 |
|||||||
cusid |
商户号 |
实际交易的店铺ID |
否 |
15 |
|
||
appid |
应用ID |
平台分配的APPID |
否 |
8 |
|
||
acct |
支付平台用户标识 |
01微信openid 02银联userid |
是 |
32 |
|
||
sign |
签名 |
详见安全规范 |
否 |
32 |