Update Product

๐Ÿ”’

Requires write_product access scope. For more access scope

๐Ÿ“˜

Important Note: When updating the same product, the updateProduct API is more performant than updateVariant. If there are multiple updates for the same product (e.g., updating variant prices), it is strongly recommended to use updateProduct to avoid potential locking issues. This ensures better performance and reduces delays.

The Update Product API allows developers to update product details by using its unique domain prefix (shopdomain) and providing various configurable fields. This endpoint supports modifying specific fields such as product title, description, variants and images. It is particularly useful for managing product catalog updates and maintaining accurate product information.This API is especially useful for:

  1. Updating product metadata like title, description, and SEO fields through its unique identifier (product_id).

  2. Managing product variants, options, and inventory details.

Note: The operation is scoped to a specific shop, identified by its unique domain prefix (shopdomain), ensuring all updates are applied to the correct store.

Public Request Parameters

Parameter NameTypeRequiredParameter LocationParameter ValueDescription
Access-TokenStringYesHeaderBx-_5aV
eXNwl-4AB98s5xLV
yg0fNzGf

MuTpqtlBA
Used to authenticate API requests. Obtain an access token from the Access Token Guide.
Pass it in the Authorization header for every request.
Content-TypeStringYesHeaderapplication
/json
Indicates the media type of the request body. It tells the server how to parse the request and
the client how to interpret the response. For more details, visit Content-Type.

Public Response Parameters

Parameter NameTypeMandatoryParameter LocationExample ValueDescription
errorStringNoResponse Body{ "error": "store is not active" }Indicates an error encountered during the process. This field typically appears when the Access Token is missing or invalid. Example: { "error": "store is not active" }.
errorsArrayNoResponse Body{ "errors"["No Context"] }A list of errors that occurred during the request processing. Example: { "errors": [ "No Context" ] }.
Request-IdStringYesHeaderBx-_5aV
eXNwl-4AB98s5xLV
yg0fNzGf

MuTpqtlBA
A unique identifier for each request. It helps in identifying and debugging specific requests.

Error and Errors Clarification:

Added explanation that the error and errors fields are currently dependent on the API implementation, with plans for future unification.

Request Parameters

Path Parameters

ParameterTypeRequiredExampleDescription
product_idstringYes9fb9f3c6-2300-42c1-8593-d9008d7cfc09The unique identifier for the product.

Body Parameters

ParameterTypeRequiredExampleDescription
product.titlestringNo"New Product Title"The title of the product.
product.briefstringNo"Short description"A brief description of the product.
product.descriptionstringNo"Detailed product description"A detailed description of the product in HTML format.
product.publishedbooleanNotrueIndicates whether the product is published.
product.requires_shippingbooleanNotrueSpecifies if the product requires shipping.
product.taxablebooleanNofalseIndicates whether the product is taxable.
product.tagsstringNo"tag1,tag2,tag3"A comma-separated list of tags for the product. Useful for categorization.
product.vendorstringNo"Vendor Name"The vendor of the product, limited to 100 characters

It is applicable in scenarios like product creation, supply chain management and categorization.
product.vendor_urlstringNo"https://vendor-website.com"The URL of the vendor.
product.notestringNo"Product note"Additional notes about the product.
product.seo_titlestringNo"SEO Title"The SEO title for the product.
product.seo_descriptionstringNo"SEO Description"The SEO description for the product.
product.seo_keywordsstringNo"keyword1,keyword2"SEO keywords for the product, separated by commas.
product.handlestringNo"product-handle"The unique handle for the product.
product.inventory_trackingbooleanNotrueSpecifies if inventory tracking is enabled for the product.
product.inventory_policystringNo"deny"Inventory policy: continue, deny, auto_unpublished, required while inventory_tracking is true
product.spustringNo"SPU12345"The Standard Product Unit (SPU) identifier for the product.
product.fake_salesintegerNo100The number of fake sales displayed for the product.
product.display_fake_salesbooleanNotrueWhether to display fake sales for the product.
product.need_variant_imagebooleanNotrueThe need_variant_image field is automatically set to true if any variant has an image; otherwise, it is set to false.
product.has_only_default_variantbooleanNofalseSpecifies if the product has only a default variant.
product.optionsarrayNoArray of Options Object
product.options.namestringYes"Size"The name of the option (e.g., Size).
product.options.valuesarrayYes["S", "M", "L"]The values for the option (e.g., S, M).
product.imagesarrayNoArray of Image Object
product.images.idstringNo"image-id"The unique identifier for the image.
product.images.srcstringNo"https://image-url.com/image.jpg"The source URL for the image.
product.images.widthintegerNo800The width of the image.
product.images.heightintegerNo600The height of the image.
product.images.altstringNo"Image alt text"Alternative text for the image.
product.variantsarrayNoArray of Variants Object
product.variants.idstringYes"variant-id"The unique identifier for the variant.
product.variants.option1stringNo"S"The first option value for the variant.
product.variants.option2stringNo"Blue"The second option value for the variant.
product.variants.option3stringNo"T"The third option value for the variant.
product.variants.pricefloatNo10.00The price of the variant.
product.variants.skustringNo"SKU123"The SKU for the variant.
product.variants.inventory_quantityintegerNo100The inventory quantity available for the variant.
product.variants.extendarrayNoArray of Extend Object
product.variants.extend.lengthnumberNo10.0The length of the variant in the specified dimension unit.
product.variants.extend.widthnumberNo5.0The width of the variant in the specified dimension unit.
product.variants.extend.heightnumberNo15.0The height of the variant in the specified dimension unit.
product.variants.extend.dimension_unitstringNoinUnit of measurement for dimensions (e.g., cm, in).
product.variants.extend.origin _country_codestringNoAGCountry of origin code of the product
product.variants.extend.hs_CodestringNo62114390HS codes are the international standard
for commodity classification, and Shoplazza can
automatically generate HS codes based on commodity information.
product.variants.wholesale_pricearrayNoArray of Wholesale Price
product.variants.wholesale_price.
price
stringYes"8.99"The wholesale price for the variant.
product.variants.wholesale_price.
min_quantity
integerYes10Minimum quantity for the price.
no_entitybooleanNofalseIf true, the API will not return product entity details in the response.

Response Explanation

Successful Response

FieldTypeExampleDescription
productobjectThe main product object.
product.briefstring"shirt"A brief description of the product.
product.created_atstring"2024-04-17T02:15:18Z"The timestamp of product creation.
product.descriptionstring"

Desc

"
The detailed description of the product.
product.display_fake_salesbooleantrueIndicates if fake sales should be displayed.
product.fake_salesinteger10The number of fake sales displayed.
product.handlestring"shirt"The handle of the product.
product.has_only_default_variantbooleanfalseIndicates if the product has only a default variant.
product.idstring"a1a88be0-a1d4-47e4-a2f2-ba6e131cf447"The unique identifier of the product.
product.imageobjectImage ObjectThe main image of the product.
product.image.srcstring"//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg"URL of the product image.
product.image.widthinteger174The width of the product image.
product.image.heightinteger180The height of the product image.
product.image.pathstring"ccf0794c594bad32a320eea0d6bfe40c.jpeg"The path of the product image.
product.image.altstring""The alternate text for the product image.
product.imagesarray of objectsarray of image objectsA list of additional product images.
product.images[].idstring"8ef098c5-5a08-44b4-b5fb-89214bb507dc"The unique identifier of the image.
product.images[].product_idstring"a1a88be0-a1d4-47e4-a2f2-ba6e131cf447"The associated product ID.
product.images[].positioninteger1The position of the image in the gallery.
product.images[].srcstring"//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg"The URL of the image.
product.images[].widthinteger174The width of the image.
product.images[].heightinteger180The height of the image.
product.images[].altstring""The alternate text for the image.
product.images[].created_atstring"2024-04-17T02:15:18Z"The creation timestamp of the image.
product.images[].updated_atstring"2024-04-17T02:15:35Z"The last update timestamp of the image.
product.inventory_policystring"continue"Required when inventory_tracking is set to true.
The following options are available:

- continue: Continue selling when out of stock
- deny: Stop selling when out of stock
- auto_unpublished: Set as draft when out of stock
product.inventory_quantityinteger72The inventory quantity of the product.
product.inventory_trackingbooleantruetrue if inventory is tracked, false if not. It relates to the logic of whether a product or its variants can be purchased.
product.mixed_wholesalebooleanfalseIndicates if the product supports mixed wholesale.
product.need_variant_imagebooleantrueIndicates if a variant image is required.
product.notestring""Any notes about the product.
product.optionsarrayArray of Options ObjectsThe product options, such as size and color.
product.options[].idstring"a4fc1abf-86fb-4e45-b774-9ff3b3f8ef90"The unique identifier of the option.
product.options[].product_idstring"a1a88be0-a1d4-47e4-a2f2-ba6e131cf447"The associated product ID.
product.options[].positioninteger1The position of the option.
product.options[].namestring"size"The name of the option.
product.options[].valuesarray of strings["S", "L"]The values available for the option.
product.publishedbooleanfalseIndicates if the product is published.
product.published_atstring"1970-01-01T00:00:00Z"The timestamp when the product was published.
product.requires_shippingbooleantrueIndicates if the product requires shipping.
product.seo_descriptionstring"Desc"The SEO description for the product.
product.seo_keywordsstring""The SEO keywords for the product.
product.seo_titlestring"shirt"The SEO title for the product.
product.spustring"T-M"The SPU (Standard Product Unit) for the product.
product.tagsstring"s1-s2"A comma-separated list of tags for the product. Useful for categorization.
product.taxablebooleantrueIndicates if the product is taxable.
product.titlestring"shirt"The title of the product.
product.updated_atstring"2024-04-17T02:15:35Z"The timestamp of the last product update.
product.variantsarray array of Variant ObjectsA list of product variants.
product.variants[].idstring"88e68830-4ef5-4125-bf7d-aef8047176b2"The unique identifier of the variant.
product.variants[].product_idstring"a1a88be0-a1d4-47e4-a2f2-ba6e131cf447"The associated product ID.
product.variants[].image_idstring"8ef098c5-5a08-44b4-b5fb-89214bb507dc"The ID of the associated image.
product.variants[].created_atstring"2024-04-17T02:15:18Z"The creation timestamp of the variant.
product.variants[].updated_atstring"2024-04-17T02:15:35Z"The last update timestamp of the variant.
product.variants[].titlestring"S-blue-T"The title of the variant.
product.variants[].option1string"S"The value of the first option.
product.variants[].option2string"blue"The value of the second option.
product.variants[].option3string"T"The value of the third option.
product.variants[].positioninteger1The position of the variant in the list.
product.variants[].compare_at_pricestring"12.10"The compare-at price of the variant.
product.variants[].pricestring"10.10"The price of the variant.
product.variants[].skustring"T-M-S-blue-T-A001004"The SKU of the variant.
product.variants[].barcodestring"6929000212340"The barcode of the variant.
product.variants[].notestring"node"Any notes about the variant.
product.variants[].inventory_quantityinteger10The inventory quantity of the variant.
product.variants[].weightstring"1.10"The weight of the variant.
product.variants[].weight_unitstring"kg"The weight unit of the variant.
product.variants[].cost_pricestring"1.10"The cost price of the variant.
product.variants[].wholesale_pricearray of objectsArray of Wholesale Price The wholesale price details of the variant
product.variants.wholesale_price.
price
string"10"Minimum quantity for the price.
product.variants.wholesale_price.
min_quantity
integer0If true, the API will not return product entity details in the response.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray["Context"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorArray "store is not active"Indicates an error encountered during the process.

Request Examples

curl --request PUT \
     --url https://jinhanbaob2330i.myshoplaza.com/openapi/2022-01/products/a1a88be0-a1d4-47e4-a2f2-ba6e131cf447 \
     --header 'accept: application/json' \
     --header 'access-token: bXJMS9Ge193sBsGtwWNPHv3AD3eNZthICKOpUTs9vL4' \
     --header 'content-type: application/json' \
     --data '
{
  "no_entity": false,
  "product": {
    "title": "test"
  }
}
'

Success Response Example

{
  "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"
  }
}

Error Response Example

{
  "errors": ["Product not found"]
}
{
  "error": "store is not active"
}

Response Explanation

Product Response Fields

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
404Product Not FoundThe product ID provided in the request does not exist.{ "errors": ["Product not found"] }
422Failed ValidationOne or more fields failed validation checks.{ "errors": [ "Variant price must be entered."]}
Invalid or empty idmissing required id or id with incorrect UUID types{ "errors": [ "Id is not an invalid UUID"]}
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!