Add multiple products to store
POST {{baseUrl}}/bulk_products
Service urls:
http://yourdomain.com/api/rest_admin/bulk_products
OR
http://yourdomain.com/index.php?route=rest/product_admin/bulkproducts
Request Body
[{"model"=>"<string>", "product_description"=>[{"name"=>"<string>", "meta_title"=>"<string>", "language_id"=>1, "description"=>"<string>", "meta_description"=>"<string>", "meta_keyword"=>"<string>", "tag"=>"<string>"}, {"name"=>"<string>", "meta_title"=>"<string>", "language_id"=>1, "description"=>"<string>", "meta_description"=>"<string>", "meta_keyword"=>"<string>", "tag"=>"<string>"}], "quantity"=>1, "price"=>"<double>", "tax_class_id"=>0, "manufacturer_id"=>0, "sku"=>"<string>", "product_seo_url"=>[{"keyword"=>"<string>", "language_id"=>"<integer>", "store_id"=>"<integer>"}, {"keyword"=>"<string>", "language_id"=>"<integer>", "store_id"=>"<integer>"}], "status"=>1, "points"=>"<integer>", "reward"=>"<integer>", "image"=>"<string>", "other_images"=>["<string>", "<string>"], "shipping"=>1, "stock_status_id"=>6, "upc"=>"<string>", "ean"=>"<string>", "jan"=>"<string>", "isbn"=>"<string>", "mpn"=>"<string>", "location"=>"<string>", "date_available"=>"<date>", "weight"=>"<double>", "weight_class_id"=>"<integer>", "length"=>"<double>", "width"=>"<double>", "height"=>"<double>", "length_class_id"=>"<integer>", "subtract"=>1, "minimum"=>1, "sort_order"=>1, "product_store"=>[0, 0], "product_related"=>["<integer>", "<integer>"], "product_filter"=>["<integer>", "<integer>"], "product_category"=>["<integer>", "<integer>"], "product_special"=>[{"customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}, {"customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}], "product_discount"=>[{"name"=>"<string>", "customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "quantity"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}, {"name"=>"<string>", "customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "quantity"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}], "product_attribute"=>[{"attribute_id"=>"<integer>", "product_attribute_description"=>[{"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}, {"attribute_id"=>"<integer>", "product_attribute_description"=>[{"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}], "product_option"=>[{"type"=>"<string>", "option_id"=>"<integer>", "product_option_value"=>[{"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "required"=>"<integer>"}, {"type"=>"<string>", "option_id"=>"<integer>", "product_option_value"=>[{"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "required"=>"<integer>"}]}, {"model"=>"<string>", "product_description"=>[{"name"=>"<string>", "meta_title"=>"<string>", "language_id"=>1, "description"=>"<string>", "meta_description"=>"<string>", "meta_keyword"=>"<string>", "tag"=>"<string>"}, {"name"=>"<string>", "meta_title"=>"<string>", "language_id"=>1, "description"=>"<string>", "meta_description"=>"<string>", "meta_keyword"=>"<string>", "tag"=>"<string>"}], "quantity"=>1, "price"=>"<double>", "tax_class_id"=>0, "manufacturer_id"=>0, "sku"=>"<string>", "product_seo_url"=>[{"keyword"=>"<string>", "language_id"=>"<integer>", "store_id"=>"<integer>"}, {"keyword"=>"<string>", "language_id"=>"<integer>", "store_id"=>"<integer>"}], "status"=>1, "points"=>"<integer>", "reward"=>"<integer>", "image"=>"<string>", "other_images"=>["<string>", "<string>"], "shipping"=>1, "stock_status_id"=>6, "upc"=>"<string>", "ean"=>"<string>", "jan"=>"<string>", "isbn"=>"<string>", "mpn"=>"<string>", "location"=>"<string>", "date_available"=>"<date>", "weight"=>"<double>", "weight_class_id"=>"<integer>", "length"=>"<double>", "width"=>"<double>", "height"=>"<double>", "length_class_id"=>"<integer>", "subtract"=>1, "minimum"=>1, "sort_order"=>1, "product_store"=>[0, 0], "product_related"=>["<integer>", "<integer>"], "product_filter"=>["<integer>", "<integer>"], "product_category"=>["<integer>", "<integer>"], "product_special"=>[{"customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}, {"customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}], "product_discount"=>[{"name"=>"<string>", "customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "quantity"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}, {"name"=>"<string>", "customer_group_id"=>"<integer>", "price"=>"<double>", "priority"=>"<integer>", "quantity"=>"<integer>", "date_start"=>"<string>", "date_end"=>"<string>"}], "product_attribute"=>[{"attribute_id"=>"<integer>", "product_attribute_description"=>[{"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}, {"attribute_id"=>"<integer>", "product_attribute_description"=>[{"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"language_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "text"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}], "product_option"=>[{"type"=>"<string>", "option_id"=>"<integer>", "product_option_value"=>[{"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "required"=>"<integer>"}, {"type"=>"<string>", "option_id"=>"<integer>", "product_option_value"=>[{"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"price"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "price_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "quantity"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subtract"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "option_value_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "points_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "weight_prefix"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "required"=>"<integer>"}]}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":"\u003cinteger\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":"\u003cobject\u003e"}