**版本：202201**

# 查询商品详情

**GET** `/openapi/2022-01/products/:product_id`

通过唯一 ID 获取指定商品的详情。

## 请求

**Path参数**

- `product_id` string (required)

  待查询的商品 ID。

## 响应

**200 | 422**

200

**application/json**

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

**数据结构**

- `product` object

  - `brief` string

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

    **示例：** `2024-04-17T02:15:18Z`
  - `description` string

    **示例：** `<p>Desc</p>`
  - `display_fake_sales` boolean

    **默认值：** `true`

    **示例：** `true`
  - `fake_sales` integer

    **默认值：** `0`

    **示例：** `10`
  - `handle` string

    **示例：** `shirt`
  - `has_only_default_variant` boolean

    **默认值：** `true`

    **示例：** `false`
  - `id` string

    **示例：** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
  - `image` object

    - `src` string

      **示例：** `//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg`
    - `width` integer

      **默认值：** `0`

      **示例：** `174`
    - `height` integer

      **默认值：** `0`

      **示例：** `180`
    - `path` string

      **示例：** `ccf0794c594bad32a320eea0d6bfe40c.jpeg`
    - `alt` string

      **示例：**
  - `category` object

    - `id` integer

      **默认值：** `0`

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

      **示例：** `3`
    - `google_id` integer

      **默认值：** `0`

      **示例：** `0`
    - `level` integer

      **默认值：** `0`

      **示例：** `3`
    - `path` string

      **示例：** `368313940138008142,368313940138024526,368313940138040910`
  - `images` object[]

    *   Array [

    - `id` string

      **示例：** `8ef098c5-5a08-44b4-b5fb-89214bb507dc`
    - `product_id` string

      **示例：** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
    - `position` integer

      **默认值：** `0`

      **示例：** `1`
    - `src` string

      **示例：** `//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg`
    - `width` integer

      **默认值：** `0`

      **示例：** `174`
    - `height` integer

      **默认值：** `0`

      **示例：** `180`
    - `alt` string

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

      **示例：** `2024-04-17T02:15:18Z`
    - `updated_at` string

      **示例：** `2024-04-17T02:15:35Z`
    *   ]
  - `inventory_policy` string

    **示例：** `continue`
  - `inventory_quantity` integer

    **默认值：** `0`

    **示例：** `72`
  - `inventory_tracking` boolean

    **默认值：** `true`

    **示例：** `true`
  - `mixed_wholesale` boolean

    **默认值：** `true`

    **示例：** `false`
  - `need_variant_image` boolean

    **默认值：** `true`

    **示例：** `true`
  - `note` string

    **示例：**
  - `options` object[]

    *   Array [

    - `id` string

      **示例：** `a4fc1abf-86fb-4e45-b774-9ff3b3f8ef90`
    - `product_id` string

      **示例：** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
    - `position` integer

      **默认值：** `0`

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

      **示例：** `size`
    - `values` string[]
    *   ]
  - `published` boolean

    **默认值：** `true`

    **示例：** `false`
  - `published_at` string

    **示例：** `1970-01-01T00:00:00Z`
  - `requires_shipping` boolean

    **默认值：** `true`

    **示例：** `true`
  - `seo_description` string

    **示例：** `Desc`
  - `seo_keywords` string

    **示例：**
  - `seo_title` string

    **示例：** `shirt`
  - `spu` string

    **示例：** `T-M`
  - `tags` string

    **示例：** `s1-s2`
  - `taxable` boolean

    **默认值：** `true`

    **示例：** `true`
  - `title` string

    **示例：** `shirt`
  - `updated_at` string

    **示例：** `2024-04-17T02:15:35Z`
  - `variants` object[]

    *   Array [

    - `id` string

      **示例：** `88e68830-4ef5-4125-bf7d-aef8047176b2`
    - `product_id` string

      **示例：** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
    - `image_id` string

      **示例：** `8ef098c5-5a08-44b4-b5fb-89214bb507dc`
    - `created_at` string

      **示例：** `2024-04-17T02:15:18Z`
    - `updated_at` string

      **示例：** `2024-04-17T02:15:35Z`
    - `title` string

      **示例：** `S-blue-T`
    - `option1` string

      **示例：** `S`
    - `option2` string

      **示例：** `blue`
    - `option3` string

      **示例：** `T`
    - `image` object

      - `src` string

        **示例：** `//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg`
      - `width` integer

        **默认值：** `0`

        **示例：** `174`
      - `height` integer

        **默认值：** `0`

        **示例：** `180`
      - `path` string

        **示例：** `ccf0794c594bad32a320eea0d6bfe40c.jpeg`
      - `alt` string

        **示例：**
    - `position` integer

      **默认值：** `0`

      **示例：** `1`
    - `compare_at_price` string

      **示例：** `12.10`
    - `price` string

      **示例：** `10.10`
    - `sku` string

      **示例：** `T-M-S-blue-T-A001004`
    - `barcode` string

      **示例：** `6929000212340`
    - `note` string

      **示例：** `node`
    - `inventory_quantity` integer

      **默认值：** `0`

      **示例：** `10`
    - `weight` string

      **示例：** `1.10`
    - `weight_unit` string

      **示例：** `kg`
    - `cost_price` string

      **示例：** `1.10`
    - `wholesale_price` object[]

      *   Array [

      - `price` string

        **示例：** `10.10`
      - `min_quantity` integer

        **默认值：** `0`

        **示例：** `1`
      *   ]
    - `extend` object

      - `length` integer

        **默认值：** `0`

        **示例：** `10`
      - `width` integer

        **默认值：** `0`

        **示例：** `10`
      - `height` integer

        **默认值：** `0`

        **示例：** `10`
      - `dimension_unit` string

        **示例：** `in`
      - `origin_country_code` string

        **示例：** `AG`
      - `hs_code` string

        **示例：** `62114390`
    *   ]
  - `vendor` string

    **示例：** `shoplazza`
  - `vendor_url` string

    **示例：** `https://shoplazza.com`

```json
{
  "product": {
    "brief": "shirt",
    "created_at": "2024-04-17T02:15:18Z",
    "description": "<p>Desc</p>",
    "display_fake_sales": true,
    "fake_sales": 10,
    "handle": "shirt",
    "has_only_default_variant": false,
    "id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
    "image": {
      "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
      "width": 174,
      "height": 180,
      "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
      "alt": ""
    },
    "category": {
      "id": 368313940138040900,
      "name": "3",
      "google_id": 0,
      "level": 3,
      "path": "368313940138008142,368313940138024526,368313940138040910"
    },
    "images": [
      {
        "id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "position": 1,
        "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "width": 174,
        "height": 180,
        "alt": "",
        "created_at": "2024-04-17T02:15:18Z",
        "updated_at": "2024-04-17T02:15:35Z"
      }
    ],
    "inventory_policy": "continue",
    "inventory_quantity": 72,
    "inventory_tracking": true,
    "mixed_wholesale": false,
    "need_variant_image": true,
    "note": "",
    "options": [
      {
        "id": "a4fc1abf-86fb-4e45-b774-9ff3b3f8ef90",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "position": 1,
        "name": "size",
        "values": [
          "S"
        ]
      }
    ],
    "published": false,
    "published_at": "1970-01-01T00:00:00Z",
    "requires_shipping": true,
    "seo_description": "Desc",
    "seo_keywords": "",
    "seo_title": "shirt",
    "spu": "T-M",
    "tags": "s1-s2",
    "taxable": true,
    "title": "shirt",
    "updated_at": "2024-04-17T02:15:35Z",
    "variants": [
      {
        "id": "88e68830-4ef5-4125-bf7d-aef8047176b2",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
        "created_at": "2024-04-17T02:15:18Z",
        "updated_at": "2024-04-17T02:15:35Z",
        "title": "S-blue-T",
        "option1": "S",
        "option2": "blue",
        "option3": "T",
        "image": {
          "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
          "width": 174,
          "height": 180,
          "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
          "alt": ""
        },
        "position": 1,
        "compare_at_price": "12.10",
        "price": "10.10",
        "sku": "T-M-S-blue-T-A001004",
        "barcode": "6929000212340",
        "note": "node",
        "inventory_quantity": 10,
        "weight": "1.10",
        "weight_unit": "kg",
        "cost_price": "1.10",
        "wholesale_price": [
          {
            "price": "10.10",
            "min_quantity": 1
          }
        ],
        "extend": {
          "length": 10,
          "width": 10,
          "height": 10,
          "dimension_unit": "in",
          "origin_country_code": "AG",
          "hs_code": "62114390"
        }
      }
    ],
    "vendor": "shoplazza",
    "vendor_url": "https://shoplazza.com"
  }
}
```

```json
{
  "product":
    {
      "brief": "shirt",
      "created_at": "2024-04-17T02:15:18Z",
      "description": "<p>Desc</p>",
      "display_fake_sales": true,
      "fake_sales": 10,
      "handle": "shirt",
      "has_only_default_variant": false,
      "id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
      "image": {
        "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "width": 174,
        "height": 180,
        "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "alt": ""
      },
        "category": {
            "id": 368313940138040910,
            "name": "3",
            "google_id": 0,
            "level": 3,
            "path": "368313940138008142,368313940138024526,368313940138040910"
        },
      "images": [
        {
          "id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "position": 1,
          "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
          "width": 174,
          "height": 180,
          "alt": "",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z"
        }
      ],
      "inventory_policy": "continue",
      "inventory_quantity": 72,
      "inventory_tracking": true,
      "mixed_wholesale": false,
      "need_variant_image": true,
      "note": "",
      "options": [
        {
          "id": "a4fc1abf-86fb-4e45-b774-9ff3b3f8ef90",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "position": 1,
          "name": "size",
          "values": [
            "S",
            "L"
          ]
        },
        {
          "id": "d6a27294-e070-4c00-988d-8d54122638a7",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "position": 2,
          "name": "color",
          "values": [
            "blue",
            "red"
          ]
        },
        {
          "id": "449e7329-a355-43b3-b17e-cfd499599086",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "position": 3,
          "name": "type",
          "values": [
            "T",
            "S"
          ]
        }
      ],
      "published": false,
      "published_at": "1970-01-01T00:00:00Z",
      "requires_shipping": true,
      "seo_description": "Desc",
      "seo_keywords": "",
      "seo_title": "shirt",
      "spu": "T-M",
      "tags": "s1-s2",
      "taxable": true,
      "title": "shirt",
      "updated_at": "2024-04-17T02:15:35Z",
      "variants": [
        {
          "id": "88e68830-4ef5-4125-bf7d-aef8047176b2",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "S-blue-T",
          "option1": "S",
          "option2": "blue",
          "option3": "T",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 1,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-S-blue-T-A001004",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AG",
            "hs_code": "62114390"
          }
        },
        {
          "id": "deab5c4b-0ceb-498c-b2b6-d742321f3d20",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "S-blue-S",
          "option1": "S",
          "option2": "blue",
          "option3": "S",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 2,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-S-blue-S-A001005",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 2,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AO",
            "hs_code": "62114390"
          }
        },
        {
          "id": "41a37521-ae26-4259-9771-22ef0221788c",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "S-red-T",
          "option1": "S",
          "option2": "red",
          "option3": "T",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 3,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-S-red-T-A001006",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AI",
            "hs_code": "62114390"
          }
        },
        {
          "id": "97cbf601-7dbb-4ab4-86f2-c9b8d632494e",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "S-red-S",
          "option1": "S",
          "option2": "red",
          "option3": "S",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 4,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-S-red-S-A001007",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AI",
            "hs_code": "62114390"
          }
        },
        {
          "id": "a7175820-36b3-4fc6-9baf-51e3035242ba",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "L-blue-T",
          "option1": "L",
          "option2": "blue",
          "option3": "T",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 5,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-L-blue-T-A001008",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AO",
            "hs_code": "62114390"
          }
        },
        {
          "id": "e9a785a4-739b-45e6-93bb-d056d706c295",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "L-blue-S",
          "option1": "L",
          "option2": "blue",
          "option3": "S",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 6,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-L-blue-S-A001009",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AS",
            "hs_code": "62114390"
          }
        },
        {
          "id": "14665246-d39e-46d6-a87a-23ad54db8477",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "L-red-T",
          "option1": "L",
          "option2": "red",
          "option3": "T",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 7,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-L-red-T-A001010",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "AQ",
            "hs_code": "62114390"
          }
        },
        {
          "id": "cbd7a7b0-5dd7-4902-9466-e21bd02688b4",
          "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
          "image_id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
          "created_at": "2024-04-17T02:15:18Z",
          "updated_at": "2024-04-17T02:15:35Z",
          "title": "L-red-S",
          "option1": "L",
          "option2": "red",
          "option3": "S",
          "image": {
            "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "width": 174,
            "height": 180,
            "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
            "alt": ""
          },
          "position": 8,
          "compare_at_price": "12.10",
          "price": "10.10",
          "sku": "T-M-L-red-S-A001011",
          "barcode": "6929000212340",
          "note": "node",
          "inventory_quantity": 10,
          "weight": "1.10",
          "weight_unit": "kg",
          "cost_price": "1.10",
          "wholesale_price": [
            {
              "price": "10.10",
              "min_quantity": 1
            }
          ],
          "extend": {
            "length": 10,
            "width": 10,
            "height": 10,
            "dimension_unit": "in",
            "origin_country_code": "DZ",
            "hs_code": "62114390"
          }
        }
      ],
      "vendor": "shoplazza",
      "vendor_url": "https://shoplazza.com"
    }

}
```

422

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "productId has an invalid UUID"
  ]
}
```

```json
{
  "errors": [
    "productId has an invalid UUID"
  ]
}
```
