I have an app which is fulfilling orders.
In order to create fulfillment objects, I need, the location id of the items in that order.
Now, following the process outlined here, I have to get the variant_id from the order's line_items and use it to determine the location where that variant is stocked.
However, there are cases when the variant_id is null, which I understand it happens when that variant is deleted after the order has been placed.
How can I fulfill the order in this case?
Solved! Go to the solution
This is an accepted solution.