API Get Account Info
EndPoint
GET /api/v1/users/accounts/info
Header Params
| Parameters | Requirement | Data type | Description | Note |
|---|---|---|---|---|
| Content-Type | required | String | Value: application/json |
{
"Content-Type": "application/json"
}
Request Params
| Parameters | Requirement | Data type | Description | Note |
|---|---|---|---|---|
| access_token | required | String | User Access Token |
Example Request
https://ewallet.dev.appotapay.com/api/v1/users/accounts/info?access_token=YOUR_ACCESS_TOKEN
Response Params
{
"code": 200,
"message": "OK",
"data": {
"user_id": 1,
"phone_number": "0900000000",
"fullname": "NGUYEN VAN A",
"wallet_balance": 100000000,
"apoint_balance": 10000
}
}
Success
Http Status Code
200-OK
| Parameters | Data type | Description | Note |
|---|---|---|---|
| code | Integer | Error code | |
| message | String | Description of the error | |
| data | Object | Data details | |
| data.user_id | String | User ID | |
| data.phone_number | String | Phone number | |
| data.wallet_balance | Integer | Wallet account balance | |
| data.apoint_balance | Integer | The APoint balance | |
| data.fullname | String | Customer's full name |
Thất bại
HTTP Status Code !=
200
| Parameters | Data type | Description | Note |
|---|---|---|---|
| code | Integer | Error code | |
| message | String | Description of the error |