Create_product_api bundles

Hi,

When I create bundles (products that group multiple products) apparently in some cases the items that already exist in the system and are included in the bundle get their on_hand inventory zeroed out. They have a message saying “Initial inventory set when product created”. Has anybody got a clue on what can be happening?

Hey @fewinerybi,

Thanks for reaching out and welcome to our Developer Community!

Could you share some examples with screen captures and / or request IDs so I can inspect this issue further?

Best.
RayanP

Hi I am attaching an image of what we see in the user interface:

We are using first the product_create mutation to create the main product sku. We declare the initial inventory as 0 as such

WarehouseProduct = [{
‘warehouse_id’: warehouse_id1,
‘on_hand’: 0
},
{
‘warehouse_id’: warehouse_id2,
‘on_hand’: 0
},
{
‘warehouse_id’: warehouse_id3,
‘on_hand’: 0
}
]

and then we use the kit_build mutation to add the sub items inside the main sku.

mutation kit_build($data: BuildKitInput!) {
kit_build(data: $data) {
request_id
complexity
product {
sku
}
}
}“”")

1 Like

Hey @fewinerybi,

Thanks for hanging in there!

So far, I have been unable to reproduce this behavior in my test account. Is it possible for you to attach a request ID of the kit_build mutation you’re using?

Please let me know if you have any questions or concerns.

Best,
RayanP