# Product not found error with inventory\_remove mutation

**URL:** <https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624>\
**Category:** GraphQL API\
**Created:** [September 21, 2023, 7:28am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624 "2023-09-21T07:28:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [September 21, 2023, 7:28am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/1 "2023-09-21T07:28:15Z")

</div>

Hi!  
we are trying to create the shipment for the order via Shiphero API, as we could see in the documentation we need to create shipment, then reduce inventory and change order status. The two mutations are working fine but with inventory\_remove mutation we are getting the error with the message “Product not found”. I am sure that product is assigned to the warehouse. For the reference our request id is **650af8b9db4dac2346b873c0** and sample mutation is

```auto
mutation {
  inventory_remove(
    data: {
    sku: "SKU"
    warehouse_id: "WAREHOUSE_ID"
    quantity: 1
    reason: "Order shipped via Public API"
}
  ) {
    request_id
    complexity
  }
}

```

Appreciate any help.

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [September 21, 2023, 1:21pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/2 "2023-09-21T13:21:13Z")

</div>

Hey @saif_storage,

Thanks for reaching out!  
Looking into this inquiry now. I’ll update you as soon as I can.

Please let me know if there’s anything I can do to assist in the meantime.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [September 22, 2023, 1:06pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/3 "2023-09-22T13:06:01Z")

</div>

Hey @saif_storage,

Thanks for hanging in there!

The warehouse\_id that’s passed in the mutation points to WH 78209, which as far as I can tell has no products in it. I believe the correct warehouse id is V2FyZWhvdXNlOjk2Mzgx (96381).

Please let me know if you have any questions or concerns.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [September 22, 2023, 1:12pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/4 "2023-09-22T13:12:02Z")

</div>

Hello @sh-agent  
Thank you for look into it but this does not looks the case, because i am using the same warehouse ID in the requests to create order, create shipment and mark the order fulfilled. I will check once again.

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [September 23, 2023, 7:27am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/5 "2023-09-23T07:27:53Z")

</div>

Hello @sh-agent  
I am facing another issue while trying to create the shipment. I get the error with message “Invalid line item id” while i confirmed that item id is correct. Can you take a look please to see whats wrong. Request id is **650e92bde24ac6d8619e0b49** for your reference

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [September 25, 2023, 11:59am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/6 "2023-09-25T11:59:02Z")

</div>

Hey @saif_storage,

Thanks for hanging in there!

The line\_item\_id you’re looking for is 987028168. I believe the value that was input was the partner\_line\_item\_id.

For reference, this is the query I used to inspect:

```auto
{
  order(id: "393986124") {
    request_id
    complexity
    data {
      id
      legacy_id
      order_number
      partner_order_id
      line_items(first:1) {
        edges {
          node {
            id
            legacy_id
            partner_line_item_id
          }
        }
      }
    }
  }
}

```

Please let me know if you have any questions or concerns.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [September 26, 2023, 8:23am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/7 "2023-09-26T08:23:05Z")

</div>

Hello @sh-agent  
What do we pass in the line item id? Should it be the legacy ID or something else.  
Appreciate your support.  
Thanks and regards

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [September 26, 2023, 2:42pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/8 "2023-09-26T14:42:42Z")

</div>

Hey @saif_storage,

Thanks for hanging in there!

The id returned under the line\_items edge is the line\_item\_id. You can use that id or the legacy\_id returned in your mutations.

For example the data returned from the previous query:

```auto
{
  "data": {
    "order": {
      "request_id": "6511754fc8059c8c7a3f0ce3",
      "complexity": 3,
      "data": {
        "id": "T3JkZXI6MzkzOTg2MTI0",
        "legacy_id": 393986124,
        "order_number": "83610731",
        "partner_order_id": "83610731",
        "line_items": {
          "edges": [
            {
              "node": {
                "id": "TGluZUl0ZW06OTg3MDI4MTY4",
                "legacy_id": 987028168,
                "partner_line_item_id": "1720703346"
              }
            }
          ]
        }
      }
    }
  }

```

TGluZUl0ZW06OTg3MDI4MTY4 or 987028168 is the line\_item\_id.

Please let me know if you have any questions or concerns.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [October 3, 2023, 8:47am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/9 "2023-10-03T08:47:35Z")

</div>

> [@sh-agent](#):
>
> V2FyZWhvdXNlOjk2Mzgx

still getting the same error. Using the warehouse id as you suggested. The request id is 651bd388f698e842ec41f5a4

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 3, 2023, 1:38pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/10 "2023-10-03T13:38:22Z")

</div>

Hey @saif_storage,

Thanks for hanging in there!

Is this the intended request\_id?  
The request\_id you sent belongs to an order\_update\_fulfillment\_status mutation that returned no errors.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [October 4, 2023, 6:25am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/11 "2023-10-04T06:25:51Z")

</div>

sorry my bad, i shared the wrong request ID. The correct request id is **651bd2e43635c118216baba4**

---

<div class="post-metadata">

**Author:** ![saif\_storage](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@saif\_storage](https://community.shiphero.com/u/saif_storage)\
**Post date:** [October 5, 2023, 7:52am UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/12 "2023-10-05T07:52:04Z")

</div>

@sh-agent looking forward to your response

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 5, 2023, 5:51pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/13 "2023-10-05T17:51:11Z")

</div>

Hey @saif_storage,

Thanks for hanging in there!

For this mutation, could you try passing the customer\_account\_id value ? In this case I believe the value is 8449.

Please let me know if you have any questions or concerns.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![kevchcm](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kevchcm](https://community.shiphero.com/u/kevchcm)\
**Post date:** [February 16, 2026, 9:01pm UTC](https://community.shiphero.com/t/product-not-found-error-with-inventory-remove-mutation/2624/14 "2026-02-16T21:01:22Z")

</div>

I’m having the same issue when using the mutation.  
The mutation returns “Product not found” when I verify that the SKU is available in the warehouse ID I’m using. I also try to use the legacy ID too, but it still doesn’t work.

Any updates on this issue?
