Code | Description |
---|---|
401 | Unauthorized. Include a WWW-Authenticate header field containing a challenge applicable to the requested resource. |
403 | Forbidden. The request was a valid request, but the server is refusing to respond to it. 403 error semantically means "unauthorized", i.e. the user does not have the necessary permissions for the resource. |
404 | Not Found. The requested resource could not be found. |
422 | Unprocessable Entity. The request was well-formed but was unable to be followed due to semantic errors. |
500 | Internal Server Error. An unexpected condition was encountered. |
request: Same as product create response: Same as product create
Param name | Description |
---|---|
product required |
Validations:
|
product[locale] optional , nil allowed |
Locale for this product. Should be one of the language codes defined on CommerceConnect. Defaults to the default language. Validations:
|
product[name] optional , nil allowed |
Product or sku name Validations:
|
product[code] optional , nil allowed |
Unique identifier for product and sku Validations:
|
product[_new_code] optional , nil allowed |
Update the code of existing product Validations:
|
product[attribute_set] optional , nil allowed |
Attribute set name that this product is assigned to. This must be created beforehand Validations:
|
product[product_class_name] optional , nil allowed |
Class name that this product is assigned to. This must be created beforehand Validations:
|
product[product_family_code] optional , nil allowed |
Product family code Validations:
|
product[product_type] optional , nil allowed |
Validations:
|
product[status] optional , nil allowed |
Validations:
|
product[kit_create_mode] optional , nil allowed |
Provide this only for creating new kit. Empty kit - create empty kit in the provided attribute set. Clone from existing SKU - create a kit by copying all data from the product with code in base_sku_code_for_clone field Validations:
|
product[base_sku_code_for_clone] optional , nil allowed |
The product code (must be SKU/bottom level product) to clone for new kit. kit_create_mode must be Clone from existing SKU. Provide this only for creating new kit Validations:
|
product[brand] optional , nil allowed |
Validations:
|
product[brand][id] optional , nil allowed |
Brand ID Validations:
|
product[product_attributes] optional , nil allowed |
Validations:
|
product[product_attributes][_any_attribute_code_] optional , nil allowed |
The key of attribute is attribute code and value is a valid json type that matches the base type of the attribute Validations:
|
product[dimension] optional , nil allowed |
Validations:
|
product[dimension][length] optional , nil allowed |
Validations:
|
product[dimension][width] optional , nil allowed |
Validations:
|
product[dimension][height] optional , nil allowed |
Validations:
|
product[dimension][weight] optional , nil allowed |
Validations:
|
product[packed_dimension] optional , nil allowed |
Validations:
|
product[packed_dimension][length] optional , nil allowed |
Validations:
|
product[packed_dimension][width] optional , nil allowed |
Validations:
|
product[packed_dimension][height] optional , nil allowed |
Validations:
|
product[packed_dimension][weight] optional , nil allowed |
Validations:
|
product[shipping_zones] optional , nil allowed |
Replace existing shipping zones with these new shipping zones Validations:
|
product[price_items] optional , nil allowed |
Add new prices or update existing prices if they exist. Validations:
|
product[price_items][price_book_name] optional , nil allowed |
Name of an existing price book to which this price item is linked Validations:
|
product[price_items][from] optional , nil allowed |
Valid from Validations:
|
product[price_items][to] optional , nil allowed |
Valid to Validations:
|
product[price_items][amount] optional , nil allowed |
Validations:
|
product[categories] optional , nil allowed |
Set the product’s categories to these categories (existing categories will be removed) Validations:
|
product[categories][id] optional , nil allowed |
Category ID Validations:
|
product[catalogs] optional , nil allowed |
Link these catalogs with the product. Validations:
|
product[catalogs][id] optional , nil allowed |
Catalog ID Validations:
|
product[catalogs][name] optional , nil allowed |
Catalog name Validations:
|
product[media_items] optional , nil allowed |
Set the product’s media items to these (existing media items will be removed). Validations:
|
product[media_items][media_item_type] optional , nil allowed |
Validations:
|
product[media_items][url] optional , nil allowed |
URL that stores the corresponding media item Validations:
|
product[media_items][description] optional , nil allowed |
Description for the media item Validations:
|
product[media_items][sort_order_position] optional , nil allowed |
The position of the media item. Non negative integer is supported Validations:
|
product[media_items][is_primary] optional , nil allowed |
Make this media item as primary Validations:
|
product[media_items][tag_list] optional , nil allowed |
Tags for this media item Validations:
|
product[media_items][processing_options] optional , nil allowed |
Options to perform extra image processing on the media item. This is applicable only when media_item_type is ‘ImageMediaItem’ Validations:
|
product[media_items][processing_options][apply_background] optional , nil allowed |
Setting this to true would result in a new media item created against the product with background applied. Removes transparency. Validations:
|
product[media_items][processing_options][background_colour] optional , nil allowed |
The colour name or a hex colour code for the background colour for the created media item. Defaults to white. Validations:
|
product[media_items][processing_options][processed_tags] optional , nil allowed |
The tags for the created media item. Validations:
|
product[inventories] optional , nil allowed |
Add new inventory or update existing inventory data Validations:
|
product[inventories][inventory_source] optional , nil allowed |
Inventory source name to which this inventory is applied Validations:
|
product[inventories][sku] optional , nil allowed |
Inventory source related SKU Validations:
|
product[inventories][qty] optional , nil allowed |
Quantity in the inventory source specified Validations:
|
product[inventories][available_qty] optional , nil allowed |
Available quantity in the inventory source specified Validations:
|
product[inventories][stock_availability] optional , nil allowed |
Flag to indicate the stock level Validations:
|
product[inventories][out_of_stock_threshold] optional , nil allowed |
Out of stock threshold Validations:
|
product[inventories][dispatch_time] optional , nil allowed |
Dispatch time Validations:
|
product[inventories][dispatch_time_unit] optional , nil allowed |
Dispatch time unit Validations:
|
product[inventories][unit_cost] optional , nil allowed |
Unit cost of the product for this inventory source Validations:
|
product[inventories][style] optional , nil allowed |
Dynamic means Qty changes and Static means Qty stays the same. This is related to inventory decrement for order download Validations:
|
product[variants] optional , nil allowed |
Validations:
|
product[variants][_product_code_] optional , nil allowed |
Child product. It accepts the params of a product Validations:
|
product[virtual_products] optional , nil allowed |
Validations:
|
product[virtual_products][_virtual_product_code_] optional , nil allowed |
Validations:
|
product[virtual_products][_virtual_product_code_][code] optional , nil allowed |
Unique identifier for virtual product Validations:
|
product[virtual_products][_virtual_product_code_][name] optional , nil allowed |
Virtual product name. Required for creating new virtual Validations:
|
product[virtual_products][_virtual_product_code_][status] optional , nil allowed |
Required for creating new virtual product Validations:
|
product[virtual_products][_virtual_product_code_][attributes] optional , nil allowed |
Validations:
|
product[virtual_products][_virtual_product_code_][attributes][_any_attribute_code_] optional , nil allowed |
The key of attribute is attribute code and value is a valid json type that matches the base type of the attribute Validations:
|
product[kit_skus] optional , nil allowed |
Validations:
|
product[kit_skus][product_code] optional |
Product code. It must be at bottom level (SKU) and cannot be a Kit Validations:
|
product[kit_skus][qty] optional |
The qty of the bundled SKU Validations:
|