d
Topic
Posts:
6
10 days ago

Line items must be stocked at the same location - Error in fulfilment API

Hi,

My store has a multiple locations. 

When i tried to create fulfilment for my order i get "Line items must be stocked at the same location" error.

Order has two items, Items are in different locations. How can i send the multiple location in fulfilment api.

My request is

URL : https://<MyStore>.myshopify.com/admin/orders/10456098258/fulfillments.xml

Method : POST

Content-type : text/xml

Request Body:

<fulfillment>
<tracking-number>TEST12345</tracking-number>
<tracking_company>DHL</tracking_company>
<location_id>14506131522</location_id>
<notify-customer type='boolean'>true</notify-customer>
</fulfillment>

Can you please check and let me know how can i send multiple location in API.

Thanks.

i
Replies
Posts:
9
7 days ago

Did you try creating two separate Fulfillment records? One for each location_id and the relevant line items.