Partial Dispatch - Not working correctly on API - is it just me?

Hi,

Lets say we have a 2 item order and we want to mark one as dispatched. We are sending to…

admin/api/2023-04/fulfillments.json

The below..

{
“fulfillment”: {
“line_items_by_fulfillment_order”: [{
“fulfillment_order_id”: 11111111111111,
“line_items”: [{“id”:222222222222,
“quantity”:1}]
}],
“tracking_info”: {
“company”: “Shipco”,
“number”: “1234567”,
“url”: “bob.com
},
“notify_customer”: false,
“location_id”: 33333333333
}
}

Why is the api marking the whole order as fulfilled? Can anyone assist?

Hi Daveyboy11,

Here’s a few things to check:

  1. Ensure that the id in line_items array corresponds to the correct item you want to fulfill. This id should be the id of the line item and not the product variant id.
  2. Ensure that the fulfillment_order_id correctly corresponds to the order that contains the item you want to fulfill.

If you are doing all above correctly, Shopify should only fulfill the item specified and not the entire order.

Hope this helps,

Thanks - doesn’t work for me - tried every variation possible.

Actually tell a lie got there in the end.

fulfillment_order_id, line_item_id from the line_items array.

Glad to hear this worked!