I’m currently working on integrating WooCommerce with my application using the REST API, and I’m facing an issue when trying to add a bundle configuration to an order. Here’s the structure of the request I’m sending:
{
"line_items": [
{
"product_id": 10148,
"quantity": 1,
"bundle_configuration": [
{
"bundled_item_id": 1011,
"product_id": 8213,
"quantity": 1,
"variation_id": 46400
},
{
"bundled_item_id": 1012,
"product_id": 8213,
"quantity": 1,
"variation_id": 46400
},
{
"bundled_item_id": 1044,
"product_id": 8213,
"quantity": 1,
"variation_id": 46400
}
]
}
]
}
I’ve verified that the product IDs and variation IDs (8213 and 46400) are correct and exist in my WooCommerce store. I’m using OAuth authentication and the correct API endpoint (POST /wp-json/wc/v3/orders).
What could be causing this error? Is there something I’m missing in the bundle configuration or the way I’m sending the request? Any insights or suggestions would be greatly appreciated.
Thank you