Invalid warehouse id in order_creeate API call

Hey, I am receiving invalid warehouse_id response while calling order_create API with my dev account. my accountis a dev account: . Can you please help me here . My request is below :
{
“order”: {
“order_number”: “1-#1007: perenniallifestyle”,
“shop_name”: “shopify-production”,
“partner_order_id”: 1,
“fulfillment_status”: “pending”,
“order_date”: “2019-10-10 21:47:41”,
“total_tax”: 0.0,
“subtotal”: 29.5,
“total_discounts”: 0.0,
“total_price”: 29.5,
“shipping_lines”: {
“title”: “unmapped”,
“price”: “0.00”
},
“shipping_address”: {
“first_name”: “akanksha”,
“last_name”: “saxena”,
“company”: null,
“address1”: “234 Laurier Avenue West”,
“address2”: null,
“city”: “Ottawa”,
“state”: “ON”,
“state_code”: “ON”,
“zip”: “K1N 5X8”,
“country”: “CA”,
“country_code”: “CA”,
“phone”: null
},
“billing_address”: {
“first_name”: “akanksha”,
“last_name”: “saxena”,
“company”: null,
“address1”: “234 Laurier Avenue West”,
“address2”: null,
“city”: “Ottawa”,
“state”: “ON”,
“state_code”: “ON”,
“zip”: “K1N 5X8”,
“country”: “CA”,
“country_code”: “CA”,
“phone”: null
},
“tags”: “default_warehouse_id_5279”,
“line_items”: [
{
“partner_line_item_id”: 1,
“sku”: “SFN#14#SFN-29944587-189gray-11”,
“product_name”: “2019 New Men Shoes Sneakers Breathable Lightweight Casual Men Shoes Lace Up Comfortable Flat Male Trainers Running Shoes 39~47 - 189Gray / 11”,
“quantity”: 1,
“price”: 29.5,
“warehouse_id”: “5279”
}
],
“email”: “shopify-fulfillment@shopify.com”,
“profile”: “default”,
“required_ship_date”: “2019-10-10”,
“packing_note”: “Order #1310460739640\nSales Platform Order #1007”,
“custom_invoice_url”: null
}
}
Thanks

Hi Akanksha!
I apologize for the delay in this response. We are currently trying to figure out why you see that error message.
So far we couldn’t reproduce that same error,
Have you tried using a more complex “partner_line_item_id”?
Thank you for the details!
Tom

Hi @akanksha !
were you able to create the order with that suggestion, or are you still getting the error?
Thanks!,
Tom

Hi tomasw,
I reset my whole db & try to create the order again. This time it worked for me. So I m not sure what was the issue but got it working for me now.
Thanks for helping me out here.

1 Like