**版本：202201**

# 更新店铺详情

**PATCH** `/openapi/2022-01/shop/:shop_id`

修改店铺的指定属性。

## 请求

**Path参数**

- `shop_id` string (required)

  店铺 ID。

**application/json**

**请求体 | 示例**

**请求体**

- `shop` object

  - `customer_email` string

```json
{
  "shop": {
    "customer_email": "string"
  }
}
```

## 响应

**200**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `shop` object

  - `id` integer

    **默认值：** `0`

    **示例：** `633130`
  - `name` string

    **示例：** `test-shoplazza`
  - `email` string

    **示例：** `test@shoplazza.com`
  - `domain` string

    **示例：** `test-shoplazza.stg.myshoplaza.com`
  - `address1` string

    **示例：** `粤海门`
  - `zip` string

    **示例：** `515300`
  - `city` string

    **示例：** `深圳`
  - `phone` string

    **示例：** `15014471143`
  - `primary_locale` string

    **示例：** `en-US`
  - `address2` string

    **示例：**
  - `created_at` string

    **示例：** `2023-11-08T11:51:39Z`
  - `updated_at` string

    **示例：** `2024-04-29T09:58:04Z`
  - `country_code` string

    **示例：** `CN`
  - `currency` string

    **示例：** `USD`
  - `customer_email` string

    **示例：** `bcd@shoplazza.com`
  - `timezone` string

    **示例：** `800`
  - `shop_owner` string

    **示例：** `test-shoplazza`
  - `account` string

    **示例：** `test@shoplazza.com`
  - `province_code` string

    **示例：** `CN-GD`
  - `icon` object

    - `src` string

      **示例：** `http://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.png`
    - `path` string

      **示例：** `55f1a60e47d1462c7d88dec3844369f0.png`
    - `alt` string

      **示例：**
  - `system_domain` string

    **示例：** `test-shoplazza.stg.myshoplaza.com`
  - `root_url` string

    **示例：**

```json
{
  "shop": {
    "id": 633130,
    "name": "test-shoplazza",
    "email": "test@shoplazza.com",
    "domain": "test-shoplazza.stg.myshoplaza.com",
    "address1": "粤海门",
    "zip": "515300",
    "city": "深圳",
    "phone": "15014471143",
    "primary_locale": "en-US",
    "address2": "",
    "created_at": "2023-11-08T11:51:39Z",
    "updated_at": "2024-04-29T09:58:04Z",
    "country_code": "CN",
    "currency": "USD",
    "customer_email": "bcd@shoplazza.com",
    "timezone": 800,
    "shop_owner": "test-shoplazza",
    "account": "test@shoplazza.com",
    "province_code": "CN-GD",
    "icon": {
      "src": "http://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.png",
      "path": "55f1a60e47d1462c7d88dec3844369f0.png",
      "alt": ""
    },
    "system_domain": "test-shoplazza.stg.myshoplaza.com",
    "root_url": ""
  }
}
```

```json
{
  "shop": {
    "id": 633130,
    "name": "test-shoplazza",
    "email": "test@shoplazza.com",
    "domain": "test-shoplazza.stg.myshoplaza.com",
    "address1": "粤海门",
    "zip": "515300",
    "city": "深圳",
    "phone": "15014471143",
    "primary_locale": "en-US",
    "address2": "",
    "created_at": "2023-11-08T11:51:39Z",
    "updated_at": "2024-04-29T09:58:04Z",
    "country_code": "CN",
    "currency": "USD",
    "customer_email": "bcd@shoplazza.com",
    "timezone": "+0800",
    "shop_owner": "test-shoplazza",
    "account": "test@shoplazza.com",
    "province_code": "CN-GD",
    "icon": {
      "src": "http://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.png",
      "path": "55f1a60e47d1462c7d88dec3844369f0.png",
      "alt": ""
    },
    "system_domain": "test-shoplazza.stg.myshoplaza.com",
    "root_url": ""
  }
}
```
