{"errors":{"base":["None of the items are stocked at the new location."]}}

Highlighted
Tourist
6 0 1

I have an order with 1 product of 1 variant without tracking inventory enabled, where

'fulfillment_service' => 'manual',
'inventory_management' => null,
'inventory_policy' => 'continue',

 

But fulfillment create request responds with error

[
     'order_id' => 2263745560663,
     'tracking_numbers' => [
          'KB 7005 4978 5GB',
     ],
     'tracking_company' => 'RoyalMail',
     'notify_customer' => false,
     'line_items' => [
          [
               'id' => 4854039674967,
               'quantity' => 1,
          ],
     ],
     'location_id' => 34909028439,
]

Where location_id = 34909028439 is a  shop.primary_location_id

 

 

`POST ..../admin/orders/2263745560663/fulfillments.json` resulted in a `422 Unprocessable Entity` response:

{"errors": {"base":["None of the items are stocked at the new location."]} }

 

How I can resolve this issue?

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Hey @MaksBrainiac 

 

The merchant hasn't enabled (or has disabled) inventory at locations.

 

Have you fulfilled orders from this merchant previously?

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Tourist
6 0 1

Yes, I've fulfilled lots of orders.

 

What is a correct way to fulfill when "the merchant hasn't enabled (or has disabled) inventory at locations"?

0 Likes
Highlighted
Tourist
6 0 1

To be more accurate:

What is a correct way to fulfill the order for products where inventory "Track quantity" is OFF and shop has multiple locations?

In my case shop has multiple locations and I pass  shop.primary_location_id as location_id into `POST ..../admin/orders/2263745560663/fulfillments.json` endpoint

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Use the assigned_location_id specified at:

/admin/api/2020-04/orders/#{order_id}/fulfillment_orders.json
Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Tourist
6 0 1

I can not get  assigned_location_id  as fulfillment_orders is empty list

 

/admin/api/2020-04/orders/2263745560663/fulfillment_orders.json

 

0 Likes
Highlighted
New Member
2 0 0

Hi Scotty dont, any news about this issue?

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

@MaksBrainiac the list will be empty if the request is sent from the browser. Are you sending the request with a X-Shopify-Access-Token attached?

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Tourist
6 0 1

What do you mean "browser", this is rest API, it is not supposed to be used in browsers.

I have granted all necessary scopes, and send all required tokens according to REST API documentation.

0 Likes
Highlighted
New Member
2 0 0

Hi Scotty dont

0 Likes