Query user
This API is used for query the basic user info by the access token.
- application/json
- application/x-www-form-urlencoded
Request Body required
- app_id int64 required
This is a Zalopay-provided identifier specific to the merchant's service or application, established during the integration agreement for payment methods.
- access_token string required
The access token of the user after binding success.(This is pay_token value).
- req_date int64 required
Current timestamp in milliseconds - GMT+7.
- mac string required
Authentication information mac = HMAC(hmac_algorihtm, mac key, hmacinput), see as below:
- hmac_algorihtm: is a security method registered by Merchant with Zalopay, the default is HmacSHA256.
- mac key: provided by Zalopay at registration.
- hmacinput = app_id +|+ acess_tokem +|+ req_date.Please refer to secure data transmission for detailed information.
Request Body required
- app_id int64 required
This is a Zalopay-provided identifier specific to the merchant's service or application, established during the integration agreement for payment methods.
- access_token string required
The access token of the user after binding success.(This is pay_token value).
- req_date int64 required
Current timestamp in milliseconds - GMT+7.
- mac string required
Authentication information mac = HMAC(hmac_algorihtm, mac key, hmacinput), see as below:
- hmac_algorihtm: is a security method registered by Merchant with Zalopay, the default is HmacSHA256.
- mac key: provided by Zalopay at registration.
- hmacinput = app_id +|+ acess_tokem +|+ req_date.Please refer to secure data transmission for detailed information.
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- return_code integer
Status code.
Please refer to status code for possible values. - return_message string
Description of status code.
- sub_return_code integer
Status code detail.
Please refer to status code for possible values. - sub_return_message string
Description of status code detail.
- phone string
Masked phone of user. For example: ****1234.
{
"return_code": 0,
"return_message": "string",
"sub_return_code": 0,
"sub_return_message": "string",
"phone": "string"
}