店铺查询
需要验证签名
接口描述
店铺查询。
提示
- 可用于查询店铺相关信息和授权状态
请求头
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | M | access_token |
| Content-Type | string | M | application/json |
请求参数
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string(64) | M | pp用户唯一标志 |
| store_id | string(64) | M | 店铺ID |
返回响应
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | M | 用户id |
| store_id | string | M | 店铺ID |
| platform | enum | M | 平台 |
| name | string | M | 店铺名称 |
| store_url | string | O | 店铺url |
| category | enum | M | 销售类目 |
| seller_id | string | C | 店铺的seller_id,成功授权过的才会有 |
| auth_status | enum | M | 店铺授权状态: (见本文下面说明: UNAUTHORIZED,PROCESSING,SUCCESS,FAILED) |
| auth_fail_reason | string | C | 授权失败原因(授权失败时存在) |
返回示例
- 成功
- 失败
{
"code": 200,
"message": "SUCCESS",
"data": {
"store_id": "2309060223436555",
"client_id": "IT8623090602251418231",
"platform": "ANAZON_NA",
"name": "店铺name",
"store_url": "www.xxx.com",
"category": "General Categories",
"auth_status": "SUCCESS",
"status": "NORMAL"
}
}
{
"code": 901010,
"message": "user not exist",
"data": null
}
错误码
| 返回码 | 描述 | 解决方案 |
|---|---|---|
| 900000 | system error | 系统错误,请联系PingPong技术人员核查 |
| 900002 | illegal param | 参数有误,请根据提示更正信息 |
| 910001 | user not exist | client_id不存在,请核对后再次发起 |
| 940002 | store not exist | 检查store_id,请核对后再次发起 |
附录
1、店铺审核状态
| 值 | 描述 |
|---|---|
| UNAUTHORIZED | 未授权 |
| PROCESSING | 授权中 |
| SUCCESS | 授权成功 |
| FAILED | 授权失败 |