**版本：202201**

# 更新商品

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

根据提供的信息更新已有商品。

## 请求

**Path参数**

- `product_id` string (required)

  商品 ID。

**application/json**

**请求体 | 示例**

**请求体**

- `no_entity` boolean

  If no_entity is true, it will return empty object while update successfully

  **默认值：** `false`
- `product` object

  - `title` string

    Product's title
  - `brief` string

    Product's briefing description
  - `description` string

    Product's description
  - `published` boolean

    Whether it is published or not
  - `requires_shipping` boolean

    Whether it is required to shipping
  - `taxable` string

    Whether it is taxable
  - `tags` string

    Tags, separated by comma, for example: `tag1,tag2`
  - `vendor` string

    Vendor's name
  - `vendor_url` string

    Vendor's URL
  - `note` string
  - `seo_title` string

    SEO title
  - `seo_description` string

    SEO description
  - `seo_keywords` string

    SEO keywords, separated by comma, for example: `key1,key2`
  - `handle` string

    Product's handle
  - `has_only_default_variant` boolean

    Whether it is a single variant
  - `inventory_tracking` boolean

    Whether to tracking inventory
  - `inventory_policy` string

    Inventory policy: `continue`, `deny`, `auto_unpublished`, required while `inventory_tracking` is true
  - `need_variant_image` boolean

    Whether variant image is needed. It's required if has_only_default_variant is false
  - `spu` string

    Product's SPU
  - `fake_sales` int32

    Product's fake sales
  - `display_fake_sales` boolean

    Whether to display fake sales
  - `options` object[]

    *   Array [

    - `name` string (required)

      Option's name, for example: "color","size".
    - `values` string[] (required)

      Option's values, for example: ["red", "black"],["small", "large"]

      **默认值：** `[]`
    *   ]
  - `images` object[]

    *   Array [

    - `id` string

      The id of the image.
    - `src` string

      Image's URL
    - `width` int32

      Image's width in px
    - `height` int32

      Image's height in px
    - `alt` string

      Image's alt
    *   ]
  - `variants` object[]

    *   Array [

    - `option1` string

      Option 1
    - `option2` string

      Option 2
    - `option3` string

      Option 3
    - `image` object

      Variant's images, e.g.: `{"src":"//cn.cdn.shoplazza.com/c8bf5695d347092d7a010f00182581f7.jpeg"}`

      - `src` string

        Image's URL
      - `width` int32

        Image's width in px
      - `height` int32

        Image's height in px
      - `alt` string

        Image's alt

        **默认值：** `image's alt`
      - `position` int32
    - `compare_at_price` string

      Compare at price ( original price )
    - `price` string

      Price, set it to "0.00" if you want to leave the price empty.
    - `sku` string
    - `barcode` string

      The barcode of the variant.
    - `note` string
    - `inventory_quantity` int32
    - `weight` string
    - `weight_unit` string

      Unit of weight, possible value are: `kg`, `g`, `lb`, `oz`
    - `cost_price` string
    - `wholesale_price` object

      - `price` string
      - `min_quantity` int32

        Mini Order Quantity
    - `extend` object

      - `width` float
      - `length` float
      - `height` float
      - `dimension_unit` string
      - `origin_country_code` string

        Country of origin code of the product.
      - `hs_code` string

        HS codes are the international standard for commodity classification, and Shoplazza can automatically generate HS codes based on commodity information.
    *   ]

```json
{
  "no_entity": false,
  "product": {
    "title": "string",
    "brief": "string",
    "description": "string",
    "published": true,
    "requires_shipping": true,
    "taxable": "string",
    "tags": "string",
    "vendor": "string",
    "vendor_url": "string",
    "note": "string",
    "seo_title": "string",
    "seo_description": "string",
    "seo_keywords": "string",
    "handle": "string",
    "has_only_default_variant": true,
    "inventory_tracking": true,
    "inventory_policy": "string",
    "need_variant_image": true,
    "spu": "string",
    "fake_sales": 0,
    "display_fake_sales": true,
    "options": [
      {
        "name": "string",
        "values": [
          "string"
        ]
      }
    ],
    "images": [
      {
        "id": "string",
        "src": "string",
        "width": 0,
        "height": 0,
        "alt": "string"
      }
    ],
    "variants": [
      {
        "option1": "string",
        "option2": "string",
        "option3": "string",
        "image": {
          "src": "string",
          "width": 0,
          "height": 0,
          "alt": "image's alt",
          "position": 0
        },
        "compare_at_price": "string",
        "price": "string",
        "sku": "string",
        "barcode": "string",
        "note": "string",
        "inventory_quantity": 0,
        "weight": "string",
        "weight_unit": "string",
        "cost_price": "string",
        "wholesale_price": {
          "price": "string",
          "min_quantity": 0
        },
        "extend": {
          "width": 0,
          "length": 0,
          "height": 0,
          "dimension_unit": "string",
          "origin_country_code": "string",
          "hs_code": "string"
        }
      }
    ]
  }
}
```

## 响应

**200 | 404 | 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

      **示例：**
  - `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": ""
    },
    "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": ""
      },
      "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"
    }

}
```

404

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Product not found"
  ]
}
```

```json
{ "errors": ["Product not found"] }
```

422

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Variant price must be entered."
  ]
}
```

```json
{ "errors": [  "Variant price must be entered."]}
```
