0

This is my request to rest/V1/products:

{
 "product":{
 "sku":"test4",
 "name":"test json",
 "attribute_set_id":4,
 "price":10,
 "status":1,
 "visibility":4,
 "type_id":"bundle",
 "custom_attributes":[
 {
 "attribute_code":"price_view",
 "value":0
 },
 {
 "attribute_code":"custom_recipe",
 "value":1
 },
 {
 "attribute_code":"url_key",
 "value":"test4"
 }
 ],
 "extension_attributes":{
 "website_ids":[
 1
 ],
 "bundle_product_options":[
 {
 "title":"Container Type",
 "required":true,
 "type":"select",
 "position":0,
 "sku":"test4",
 "product_links":[
 {
 "sku":"sku-1",
 "qty":1,
 "position":0,
 "is_default":false,
 "price":0,
 "price_type":0,
 "can_change_quantity":0
 },
 {
 "sku":"sku-2",
 "qty":1,
 "position":1,
 "is_default":false,
 "price":0,
 "price_type":0,
 "can_change_quantity":0
 }
 ]
 }
 ],
 "stock_item":{
 "qty":1,
 "is_in_stock":true
 }
 }
 },
 "saveOptions":true
}

I have my product saved, but the price fields are missing for the options. See img: enter image description here

I have another bundle product, where the price option is there. See img: enter image description here

My question or issue is what should i change in my json request to have the price option ? Thank you

asked Jan 12, 2021 at 11:25

1 Answer 1

0

Please update the payload and pass the price value to the associated product

"product_links":[ { "sku":"sku-1", "qty":1, "position":0, "is_default":false, "price":0, "price_type":0, "can_change_quantity":0 }, { "sku":"sku-2", "qty":1, "position":1, "is_default":false, "price":0, "price_type":0, "can_change_quantity":0 } ]

answered Jan 12, 2021 at 15:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.