Skip to content

How to create an order with Configurable Product with Multiple options(same parent with different option)

I’am trying to create an order with Rest API in magento2 , Here i have a configurable product with id 100 and have some child product with different attribute value, here is the payload what i have created for the item

"items": [
        {
            "product_id": "100",
            "qty": 1,
            "super_attribute" : {
                        "93":"18",
                        "186":"24"
            }
        },
        {
            "product_id": "100",
            "qty": 1,
            "super_attribute" : {
                        "93":"17",
                        "186":"24"
            }
        }
   ]

here i have attribute colour with id 93 and memory with attribute id 186

When i tried to create an order its not showing the multiple option just showing only the first product data only in sales order view page

enter image description here

Can any one help me on this with the structure