QUERY USER
1.Overview
Use this API to get the newpay user info.
2.Request Info
Key |
Value |
Content-Type |
application/json |
version |
1.0 |
2.2 Request Data
Name |
Description |
Type |
Required |
appId |
Unique identifier assigned to a third-party application platform |
string |
true |
merchantId |
Unique identifier assigned to a third-party merchant |
string |
true |
timestamp |
Request timestamp |
timestamp |
true |
sign |
Data signature |
string |
true |
phoneNo |
Newpay user registration phone number |
string |
true |
2.3 Response Data
Name |
Description |
Type |
success |
Success flag: true/false |
boolean |
message |
Response message |
string |
code |
Reponse code |
string |
timestamp |
Response timestamp |
long |
data |
Result |
object |
> appId |
Unique identifier assigned to a third-party application platform |
string |
> sign |
Data signature |
string |
> tranAbbr |
Transaction Type |
string |
> tranNo |
Transaction Number |
string |
> userMobile |
NewPay user mobile |
string |
> userAvatar |
NewPay user avatar |
string |
> nickName |
NewPay user nickname |
string |
> userName |
NewPay username |
string |
> fundAccountId |
NewPay user fund account ID |
string |
> area |
NewPay user mobile area |
string |
3. Example Data
3.1 Request
{
"appId": "3514d69403bc4ce1a8fafb6415a31018",
"timestamp": 1687494500726,
"sign": "{{sign}}",
"phoneNo": "+8562022214944"
}
3.2 Response
{
"success": true,
"message": "success",
"data": {
"appId": "5afa28d9dfe94830ad67cd3a61ab8978",
"sign": "OxIJZgYobWZKW9b1ErHAVimBVCQMo/S7t01/g8xsp2Nt1eG2PYSLl01MACo3Qgd1oBLTD2QTCPFpWZqypC79yTcUyEGEN5Phzy+0lj/+GO85CMPYjmk6Ih42swoTLAb6nb3wnUwSXTKho2RUgJ9/Bf/2yZ1/Lk6c96D3GDk+1AWJbVkUUB4YjPKZFRKLzjKItnzGUpX0eiYZcJ2ashkdHS3y0gmad7cgm+Da7hb5l/ynUQftEQU8glSgvNT3oimR81ZLQ7RD2EhCn7TRdLsHm444LRq9GLM0qoFuPMzGFL3hptark14DVSDYvJQZ46/WyE12Pvo2kruZlcd1VcByJw==",
"tranAbbr": null,
"tranNo": "00012023062300000009",
"userMobile": "+8562022214944",
"userAvatar": "https://international-prod-newpay-avatar.oss-ap-southeast-1.aliyuncs.com/defaultuserphoto.png",
"nickName": "subscribers5747",
"userName": "wmr1231",
"fundAccountId": "1001211005000526",
"area": "+86"
},
"code": "0",
"timestamp": "1662521235625"
}
4. Response Code
Code |
Description |
0 |
success |
E9999 |
unknow error |
B11095 |
Illegal request |
Z00046 |
whitelist authentication failed |
Z00003 |
appid field wrong |
Z00007 |
sign field verification failed |
Z00001 |
appid field illegal |
Z00004 |
timestamp field illegal |
Z00005 |
sign field illegal |
Z00039 |
transaction failed |