I believe I found another way to get rid of this error so I mention it here in case it helps someone else.
The documentation is not entirely clear in what exactly should be entered as the “line item ID”.
We need to be aware that:
orders (those created by shop customers) have line items, identified by line_item_id in your listing
fulfillment orders have their own line items, identified by just id here (10909262577837 in your example), usually corresponding to the order’s line items
Surprisingly, the latter is correct when creating a fulfillment using the /fulfillments.json endpoint.
So maybe the tutorial is correct after all, it’s only confusing.
I too figured this out but the hard way (debugging), the documentation really needs to improve, the line item id is not the line item id of the order but the fulfillment order have ther own line items and that is the id which is expected.
Hello,
I’m trying to fulfill an item from a multi-piece order based on “requires_shipping: false” or the fact that is a digital product, the other items would get fulfilled from an integration with our WMS when fulfilled.
Is there an endpoint you would recommend to accomplish this ask?