Fulfillment API Problems When Variant ID Removed

6 0 2

We see a situation fairly often across a variety of customers where for whatever reason, a variant ID is removed after the order is placed but before we add the fulfillment. Here's the most recent example:


"fulfillment": {
"location_id": 49470292,
"notify_customer": true,
"status": "success",
"tracking_numbers": [
"tracking_urls": [
"line_items": [
"id": 6574869840033,
"quantity": 2
"tracking_company": "USPS"

"errors": "Not Found"

Posted to /admin/api/2020-10/orders/3178684776609/fulfillments.json

(Request ID ff18a979-ba2f-49aa-ac75-8a4a2d70323a)

I've confirmed that the location ID is valid and the line item ID is valid, but the variant ID on this line item isn't valid anymore so the location can't be mapped (went to variants/453479609.json). We try to do this dynamically and because the variant ID isn't found, we just use the default location ID. I think it's failing because the internal lookup of line item -> variant -> inventory item -> location can't be managed.

What advice do you have for situations like this? We see it a lot and it seems unfair to keep the entire fulfillment from posting because the customer rearranged their variants and some old ones got wiped out.

Other Request ID's on this store with the same issue:


Replies 0 (0)