3.19根据授权码(付款码)获取用户ID


接口地址: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

   

卜子超buzc 2025年5月14日 16:08 收藏文档