put
https://{store}/api/rest/products/
Change "Update" in "Example Requests" for more ways to use this endpoint!
Description: Allows you to update an existing simple product.
Authentication: Admin
Default Format: JSON
ProductUpdate Parameters:
Enter only those parameters which you want to update.
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| type_id | Product type. Can have the "simple" value. | required | string | simple |
| attribute_set_id | Attribute set for the product. | required | int | 4 |
| sku | Product SKU | required | string | new_product |
| name | Product name | required | string | New Product |
| meta_title | Product meta title | optional | string | New Product |
| meta_description | Product meta description | optional | string | This is a new product |
| url_key | A friendly URL path for the product | optional | string | new-product |
| msrp_enabled | The Apply MAP option. Defines whether the price in the catalog in the frontend is substituted with a Click for price link | optional | int | 1 |
| msrp_display_actual_price_type | Defines how the price will be displayed in the frontend. Can have the following values: In Cart, Before Order Confirmation, and On Gesture | optional | int | 2 |
| gift_message_available | Defines whether the gift message is available for the product | optional | int | 1 |
| price | Product Price | required | string | 2000 |
| special_price | Product Sale/Special Price | optional | string | 1999.99 |
| cost | Cost of item | optional | string | 0.10 |
| weight | Product Weight | required | string | 0.4 |
| msrp | The Manufacturer's Suggested Retail Price option. The price that a manufacturer suggests to sell the product at. | optional | string | 150 |
| status | Product status. Can have the following values: 1- Enabled, 2 - Disabled. | required | int | 1 |
| visibility | Product visibility. Can have the following values: 1 - Not Visible Individually, 2 - Catalog, 3 - Search, 4 - Catalog, Search. | required | int | 4 |
| tax_class_id | Product tax class. Can have the following values: 0 - None, 2 - taxable Goods, 4 - Shipping, etc., depending on created tax classes. | required | int | |
| description | Product description. | required | string | This is a new product. |
| short_description | Product short description. | required | string | A new product. |
| special_from_date | Date starting from which the special price will be applied to the product | optional | string | 2020-02-14 00:00:00 |
| special_to_date | Date till which the special price will be applied to the product optional | optional | string | 2020-02-14 00:00:00 |
| news_from_date | Date starting from which the product is promoted as a new product | optional | string | 2020-02-14 00:00:00 |
| news_to_date | Date till which the product is promoted as a new product | optional | string | 2020-02-14 00:00:00 |
| group_price | Product group price | optional | array | array of group price |
| tier_price | Product tier price | optional | array | array of tier price |
| stock_data | Product inventory data | optional | array | array of stock data |
| zb2b_product_restricted | Is Product Restricted | optional | booleanFlag | 1 |
| zb2b_restricted_prod_groups | Customer Groups allowed to view the product if restricted. (Array of IDs) | optional | array | ["1", "4"] |
| customer_permissions | Customers allowed to view the product if restricted. (Array of IDs) | optional | array | ["1", "4"] |
| account_permissions | Accounts allowed to view the product if restricted. (Array of IDs) | optional | array | ["1", "4"] |
| account_location_permissions | Account Locations allowed to view the product if restricted. (Array of IDs) | optional | array | ["1", "4"] |
| category_ids | Categories this product will belong to. | optional | array | array of category ids |
custom_options | Product Customizations. Key is either numeric for existing options or non-numeric for new options. | optional | CustomOptionConfig | { "_1": CustomOption } |
Array of Group Price attributes is as follows:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| cust_group | Customer group | optional | int | 1 |
| price | Group price | required | string | 150 |
| special_price | Group Sale Price | optional | string | 145.99 |
| special_from_date | Group Sale Start Date | optional | string | 2021-01-15T00:00:00 |
| special_to_date | Group Sale End Date | optional | string | 2021-01-25T00:00:00 |
All data in the
group_pricearray will overwrite all existing group price data.
Array of Tier Price attributes is as follows:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| website_id | Website ID | optional | int | 0 |
| cust_group | Customer group ID | optional | int | 1 |
| price | Tier price | optional | string | 150 |
| price_qty | Price quantity | optional | string | 10 |
Array of Stock Data attributes is as follows:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| qty | Quantity of stock items for the current product | optional | string | 99 |
| min_qty | Quantity for stock items to become out of stock | optional | string | 5 |
| use_config_min_qty | Choose whether the Config settings will be applied for the Qty for Item's Status to Become Out of Stock option | optional | int | 1 |
| is_qty_decimal | Choose whether the product can be sold using decimals (e.g., you can buy 2.5 product) | optional | int | 1 |
| backorders | Defines whether the customer can place the order for products that are out of stock at the moment. | optional | int | 0 |
| use_config_backorders | Choose whether the Config settings will be applied for the Backorders | optional | int | 1 |
| min_sale_qty | Minimum number of items in the shopping cart to be sold | optional | string | 10 |
| use_config_min_sale_qty | Choose whether the Config settings will be applied for the Minimum Qty Allowed in Shopping Cart | optional | int | 1 |
| max_sale_qty | Maximum number of items in the shopping cart to be sold | optional | string | 50 |
| use_config_max_sale_qty | Choose whether the Config settings will be applied for the Maximum Qty Allowed in Shopping Cart | optional | int | 1 |
| is_in_stock | Defines whether the product is available for selling. | optional | int | 1 |
| notify_stock_qty | The number of inventory items below which the customer will be notified | optional | string | 5 |
| use_config_notify_stock_qty | Choose whether the Config settings will be applied for the Notify for Quantity Below option | optional | int | 1 |
| manage_stock | Choose whether to view and specify the product quantity and availability and whether the product is in stock management. | optional | int | 1 |
| use_config_manage_stock | Choose whether the Config settings will be applied for the Manage Stock option | optional | int | 1 |
| stock_status_changed_auto | Defines whether products can be automatically returned to stock when the refund for an order is created | optional | int | 0 |
| use_config_qty_increments | Choose whether the Config settings will be applied for the Qty Increments option | optional | int | 1 |
| qty_increments | The product quantity increment value optional | optional | string | 3 |
| use_config_enable_qty_inc | Choose whether the Config settings will be applied for the Enable Qty Increments option | optional | int | 1 |
| enable_qty_increments | Defines whether the customer can add products only in increments to the shopping cart | optional | int | 0 |
| is_decimal_divided | Defines whether the stock items can be divided into multiple boxes for shipping | optional | int | 0 |
| update_stock_status | Will update the products stock status based on the data on the product. | optional | int | 0 |
| group_qty_increments | Will update the products qty increments (packages). | optional | GroupQtyIncrementData[] | [] |
| inventory_locations | Will update the qty on the specified inventory locations | optional | InventoryLocationData[] |
GroupQtyIncrementData:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| id | Customer Group ID | required | int | null |
| value | Increment Value | optional | int | 10 |
| increment_label | Increment Label | optional | string | Package(s) |
| is_default | Is the default increment | optional | boolean | false |
InventoryLocationData:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| location_id | ID of the Inventory Location | required | int | 1 |
| qty | Product Quantity for the Inventory Location | required (when not deleting) | float | 1 |
| delete | Will remove the product from the Inventory Location | optional | int | 1 |
CustomOption:
The following are the generic options needed for all custom options. There will be additional options defined below for each option type.
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| option_id | Unique identifier for the option | Required | String | "11" |
| title | The title of the option | Required | String | "Test 1" |
| type | The type of the option (field, area, file, etc.) | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| is_require | Whether the option is required (0 = No, 1 = Yes) | Required | Integer (0, 1) | 0 |
| is_deleted | Whether the option is deleted (0 = No, 1 = Yes) | Required | Integer (0, 1) | 0 |
| sort_order | The sort order of the option | Required | Integer | 0 |
| render_layout | Layout style for the option | Optional | String (null, '2-column', '3-column') | null |
| fixed_price_qty | How the price is applied (1 = One Time, 0 = Per Item) | Optional | Integer (1, 0) | 0 |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| tooltip | Tooltip text that provides more information | Optional | String (null, string) | null |
| tooltip_icon | Icon for the tooltip | Optional | String (null, string) | null |
CustomOptionField:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| max_characters | Max Characters | Required | String | null |
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| zoey_weight | Weight | Required | Integer | 0 |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
CustomOptionArea:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| max_characters | Max Characters | Required | String | null |
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| zoey_weight | Weight | Required | Integer | 0 |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
CustomOptionFile:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| file_extension | Allowed File Extensions | Required | String | null |
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
CustomOptionDate:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
| date_offset_max | Max Day Buffer | Required | null | Integer ( 0 - 29 ) |
| date_offset_max | Min Day Buffer | Required | null | Integer ( 0 - 29 ) |
CustomOptionDateTime:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
| date_offset_max | Max Day Buffer | Required | null | Integer ( 0 - 29 ) |
| date_offset_max | Min Day Buffer | Required | null | Integer ( 0 - 29 ) |
CustomOptionTime:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
CustomOptionDropDown:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| values | Key/Value where key is value id and value is the option value config | Required | CustomOptionValue | Defined in the CustomOptionValue section |
CustomOptionRadio:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| values | Key/Value where key is value id and value is the option value config | Required | CustomOptionValue | Defined in the CustomOptionValue section |
CustomOptionCheckbox:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| values | Key/Value where key is value id and value is the option value config | Required | CustomOptionValue | Defined in the CustomOptionValue section |
CustomOptionMultiple:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| values | Key/Value where key is value id and value is the option value config | Required | CustomOptionValue | Defined in the CustomOptionValue section |
CustomOptionValue:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| option_type_id | Option Type ID | Required | Non numeric for new value | '_1' |
| option_id | Option its assigned to | Required | Non numeric for new option | '11' |
| title | The title of the option | Required | String | "Test 1" |
| sku | SKU Adjustment | Required | String | null |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| customer_group_prices | Customer Group Price | Required | CustomOptionCustomerGroupPrice | Defined in the CustomOptionCustomerGroupPrice section. |
| sort_order | The sort order of the option | Required | Integer | 0 |
| zoey_weight | Weight | Required | Integer | 0 |
CustomOptionCustomerGroupPrice:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| option_customer_group_price_id | Option Type ID | Required | Non numeric for new value | '_1' |
| option_id | Option its assigned to | Required | Non numeric for new option | '11' |
| price | Price Adjustment | Required | String (field, area, file, drop_down, radio, checkbox, multiple, date, date_time, time) | "field" |
| price_type | Price Adjustment Type | Required | String (fixed, percent) | "fixed" |
| customer_group_id | Customer group ID for specific targeting | Optional | Integer (null - All groups, 0 - NOT LOGGED IN, ...) | null |
| sort_order | The sort order of the option | Required | Integer | 0 |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK
