Hello,
We are sending orders on the latest ‘/admin/api/2024-04/orders.json’ Rest API and loading the orders properly. The items on the orders are not reflected in the ‘Committed’ inventory quantities which is causing overselling. We have tried different ‘inventory_behavior’ options and the items are all set to ‘Track Quantity’ on the items. We have tried removing the ‘Product ID’ and only sending the ‘Variant ID’ with no success.
Can you please help us sort this out?
{
"order":{
"inventory_behavior":"decrement_obeying_policy",
"billing_address":{
"address1":"",
"address2":"",
"city":"",
"company":"Acme Movers",
"first_name":"Mike",
"last_name":"Armstrong",
"province_code":"AK",
"zip":"",
"country_code":"US"
},
"shipping_address":{
"address1":"100 Main Street",
"address2":"",
"city":"Chicago",
"company":"Acme Movers",
"first_name":"Mike",
"last_name":"Armstrong",
"phone":"(888) 888-8888",
"province_code":"IL",
"zip":"60611-2725",
"country_code":"US"
},
"buyer_accepts_marketing":false,
"currency":"USD",
"customer":{
"id":0,
"email":"mike@acmemovers.com",
"first_name":"Mike",
"last_name":"Armstrong"
},
"email":"mike@acmemovers.com",
"line_items":[
{
"id":8297038905571,
"quantity":1,
"price":0.0,
"sku":"STICKER",
"variant_id":44397341704419,
"taxable":false,
"total_discount":0.0,
"name":"Sticker",
"title":"Sticker"
}
],
"note":"",
"shipping_lines":[
{
"code":"NA",
"price":0.0,
"title":"Free Shipping"
}
],
"tax_lines":[
{
"price":0.0,
"rate":0.0
}
],
"total_discounts":0.0,
"total_line_items_price":0.0,
"total_tax":0.0,
"tags":""
}
}