#### 接口版本: |版本号|制定人|修订日期|说明| |:----|:----|:---- |:----| |1.0 |Karen |2021-10-26 |建立文档| #### 请求URL: - {{HOST}}/api/user/account #### 请求方式: - POST #### 请求头: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |Content-Type |是 |string |application/json | |Accept |是 |string |application/json | |Authorization|是|string|Bearer {token},`登录`接口获取| |uuid |否 |string |uuid,每个接口都会通过 headers 头返回 | |locale |否 |string |语言,默认 en,更多配置查看文件 `/config/strongshop.php` 中 `langs`| |currency |否 |string |货币,默认 USD,更多配置查看文件 `/config/strongshop.php` 中 `currencies`| #### 请求参数: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | #### 返回示例: **正确时返回:** ``` { "code": 200, "message": "Success", "data": { "id": 22, "first_name": "aa", "last_name": "bb", "nickname": "aa", "user_name": null, "email": "245238872@qq.com", "email_verified_at": "2021-10-20 15:19:32", "mobile": null, "mobile_verified_at": null, "created_at": "2021-10-20 08:45:47", "updated_at": "2021-10-26 11:07:52", "deleted_at": null, "status": 1, "last_login_at": "2021-10-26 11:07:52", "last_login_ip": "127.0.0.1", "avatar": "", "gender": 0, "birthday": null, "country_code": "US", "pay_credits": 0, "rank_credits": 0, "source": "", "http_referer": "", "country": "United States" } } ``` #### 返回CODE说明: |参数名|说明| |:----- |----- | |200 |成功 | |3001 |字段验证错误 | |5001|服务内部错误| #### 备注: - 更多返回错误代码请看首页的错误代码描述