**Version: 202201**

# Shop Details

**GET** `/openapi/2022-01/shop`

The Get Shop API allows developers to fetch comprehensive information about a shop by using its unique identifier and configurable query parameters. This endpoint supports retrieving specific fields based on the user’s request.

## Request

**Query Parameters**

- `fields` string

  To specify which fields you wanna get, separated by comma, e.g. `id,name,email`

## Responses

**200 | 400 | 401 | 500 | 520**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `shop` object

  - `account` string

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

    **Example:** `address1`
  - `address2` string

    **Example:**
  - `city` string

    **Example:** `city`
  - `country_code` string

    **Example:** `CN`
  - `created_at` string

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

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

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

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

    **Example:** `test@shoplazza.com`
  - `icon` object

    - `alt` string

      **Example:**
    - `path` string

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

      **Example:** `http://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.png`
  - `subscription` object

    - `type` string

      **Example:** `base`
  - `id` integer

    **Default value:** `0`

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

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

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

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

    **Example:** `CN-GD`
  - `root_url` string

    **Example:**
  - `shop_owner` string

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

    **Example:** `available`
  - `system_domain` string

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

    **Example:** `800`
  - `updated_at` string

    **Example:** `2024-04-29T09:18:01Z`
  - `zip` string

    **Example:** `515300`

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

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

400

**application/json**

**Schema | Example | Result**

**Schema**

- `error` string

  **Example:** `Unauthorized`

```json
{
  "error": "Unauthorized"
}
```

```json
{
  "error": "Unauthorized"
}
```

401

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "header store id not exist"
  ]
}
```

```json
{ "errors": ["header store id not exist"] }
```

500

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Response message parsing error"
  ]
}
```

```json
{ "errors": ["Response message parsing error"] }
```

520

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "No Context"
  ]
}
```

```json
{ "errors": ["No Context"] }
```
