**Version: 202201**

# Update Shop

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

The Update Shop API allows developers to modify specific attributes of a shop using its unique identifier. This endpoint supports updating various fields based on the user’s request.

## Request

**Path Parameters**

- `shop_id` string (required)

**application/json**

**Body | Example**

**Body**

- `shop` object

  - `customer_email` string

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

## Responses

**200**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `shop` object

  - `id` integer

    **Default value:** `0`

    **Example:** `633130`
  - `name` string

    **Example:** `test-shoplazza`
  - `email` string

    **Example:** `test@shoplazza.com`
  - `domain` string

    **Example:** `test-shoplazza.stg.myshoplaza.com`
  - `address1` string

    **Example:** `粤海门`
  - `zip` string

    **Example:** `515300`
  - `city` string

    **Example:** `深圳`
  - `phone` string

    **Example:** `15014471143`
  - `primary_locale` string

    **Example:** `en-US`
  - `address2` string

    **Example:**
  - `created_at` string

    **Example:** `2023-11-08T11:51:39Z`
  - `updated_at` string

    **Example:** `2024-04-29T09:58:04Z`
  - `country_code` string

    **Example:** `CN`
  - `currency` string

    **Example:** `USD`
  - `customer_email` string

    **Example:** `bcd@shoplazza.com`
  - `timezone` string

    **Example:** `800`
  - `shop_owner` string

    **Example:** `test-shoplazza`
  - `account` string

    **Example:** `test@shoplazza.com`
  - `province_code` string

    **Example:** `CN-GD`
  - `icon` object

    - `src` string

      **Example:** `http://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.png`
    - `path` string

      **Example:** `55f1a60e47d1462c7d88dec3844369f0.png`
    - `alt` string

      **Example:**
  - `system_domain` string

    **Example:** `test-shoplazza.stg.myshoplaza.com`
  - `root_url` string

    **Example:**

```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": ""
  }
}
```
