创建店铺
需要验证签名
接口描述
创建店铺
提示
- 店铺授权前请先创建店铺,【点击了解PP店铺管理产品细节】
- 店铺URL需是有效的URL地址(Protocol://Hostname:Port/Path?Query_Parameters),例如:https://test.myshopline.com
- platform请按照用户真实店铺所属平台所属站点转换为PP平台代号上送【点击见附录】
请求头
| 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注册后的唯一ID |
| platform | enum | M | PP平台代号,点击见附录 |
| store_url | string(255) | M | 店铺URL 下列平台严格遵循格式【取值请见附录】 |
| name | string(255) | M | 店铺名称 |
| category | enum | M | 销售类目,点击见附录 |
| extra_info | string(2048) | O | 其他的信息,json |
返回响应
| Parameter | Type | Required | Description |
|---|---|---|---|
| store_id | string | M | PP生成的店铺唯一ID,PP侧店铺标识 |
返回示例
- 成功
- 失败
{
"code": 200,
"message": "SUCCESS",
"data": {
"store_id": "IT8623090607825418235"
}
}
{
"code": 900000,
"message": "system error",
"data": null
}
错误码
| 返回码 | 描述 | 解决方案 |
|---|---|---|
| 900000 | system error | 系统错误,请联系PingPong技术人员核查 |
| 900002 | illegal param | 参数有误,请根据提示更正信息 |
附录
store_url【店铺链接】
| 值 | 格式 |
|---|---|
| SHOPLINE | https://prefix.myshopline.com |
| SHOPLINE_EU | https://prefix.myshopline.com |
| BIG_COMMERCE | https://prefix.mybigcommerce.com |