# 5.5 Query User

## 1. Overview <a href="#id-1overview" id="id-1overview"></a>

Use this API to inquire about the user's basic info.

## 2. Request Info <a href="#id-2request-info" id="id-2request-info"></a>

* **Method:** post
* **Path:** <https://prod-openapi-v2.newpay.la/beta/mch/queryUserInfoByToken>

### **2.1 Request Header** <a href="#id-21-request-header" id="id-21-request-header"></a>

| Key          | Value            |
| ------------ | ---------------- |
| Content-Type | application/json |

### **2.2 Request Data** <a href="#id-22-request-data" id="id-22-request-data"></a>

| Name      | Description                                                                                                | Type   | Required |
| --------- | ---------------------------------------------------------------------------------------------------------- | ------ | -------- |
| appId     | Unique identifier assigned to a third-party application platform                                           | string | true     |
| timestamp | timestamp when requesting                                                                                  | long   | true     |
| token     | User session token for backend validation                                                                  | string | true     |
| sign      | [Data signature](https://newpay-api-document.gitbook.io/newpay-api-document/8.-signature-and-verification) | string | true     |

### **2.3 Response Data** <a href="#id-23-response-data" id="id-23-response-data"></a>

| Name         | Description                                                                                               | Type    |
| ------------ | --------------------------------------------------------------------------------------------------------- | ------- |
| success      | Success flag: true/false                                                                                  | boolean |
| message      | Response message                                                                                          | string  |
| code         | [Reponse code](https://newpay-api-document.gitbook.io/newpay-api-document/9.-business-code#response-code) | string  |
| timestamp    | Response timestamp                                                                                        | long    |
| data         | Result                                                                                                    | object  |
| > appId      | Unique identifier assigned to a third-party application platform                                          | string  |
| > nickName   | user's nick name                                                                                          | string  |
| > userMobile | user's mobile                                                                                             | string  |
| > userId     | user's id in newpay platform                                                                              | long    |
| > sign       | Data signature                                                                                            | string  |
