编辑已有店铺信息,字段处理方式与新增店铺一致。
基本信息
Path: /modifyEnv
Method: POST
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
storeId / id | number/string | 是 | 要编辑的店铺 ID。 |
storeName / name | string | 否 | 店铺名称。 |
platform | string | 否 | 平台或站点值。 |
actualPlatform | string | 否 | 平台名称。 |
platformType | number | 否 | 平台类型。 |
storeAccount / username | string | 否 | 店铺账号。 |
storePassword / password | string | 否 | 店铺密码。 |
storeUrl | string | 否 | 店铺地址。 |
tagIdList | array | 否 | 店铺标签 ID 列表。 |
补充说明
缺少 storeId 或 id 会直接返回错误:storeId is required。
后端返回 code=200 或 code=104001 时都会按成功处理。
请求示例
{
"method": "modifyEnv",
"storeId": 10001,
"storeName": "new-store-name",
"platform": "US",
"actualPlatform": "Amazon",
"platformType": 1,
"storeAccount": "seller@example.com",
"storePassword": "new-password",
"storeUrl": "https://sellercentral.amazon.com"
}
成功返回示例
{
"method": "modifyEnv",
"response": {
"code": 200,
"msg": "success",
"storeId": 10001,
"data": true
}
}
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
response.code | number | 200 或 104001 表示编辑成功。 |
response.storeId | number/string | 被编辑的店铺 ID。 |
response.data | any | 后端原始返回数据。 |
失败返回示例
{
"method": "modifyEnv",
"status": "error",
"code": "400",
"msg": "storeId is required"
}