# Admin GraphQL: inventoryTransferSetItems returns INTERNAL\_SERVER\_ERROR when re-sending same payload with idempotency key

**URL:** <https://community.shopify.dev/t/admin-graphql-inventorytransfersetitems-returns-internal-server-error-when-re-sending-same-payload-with-idempotency-key/38546>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [October 12, 2026, 5:09am UTC](https://community.shopify.dev/t/admin-graphql-inventorytransfersetitems-returns-internal-server-error-when-re-sending-same-payload-with-idempotency-key/38546 "2026-10-12T05:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Cheng](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Michael\_Cheng](https://community.shopify.dev/u/Michael_Cheng)\
**Post date:** [October 12, 2026, 5:09am UTC](https://community.shopify.dev/t/admin-graphql-inventorytransfersetitems-returns-internal-server-error-when-re-sending-same-payload-with-idempotency-key/38546/1 "2026-10-12T05:09:41Z")

</div>

Hello:

I am using Admin GraphQL version 2026-10. I create an Inventory Transfer with 250 items by using InventoryTransferCreateAsReadToShip, and then use InventoryTransferSetItems to add another 250 items to the same transfer. No error on both calls.

Now when I re‑sent InventoryTransferSetItems agian, with the exact same payload and idempotent key, I got the following response:

{  
“errors”: [  
{  
“message”: “Internal error. Looks like something went wrong on our end.\nRequest ID: e233f154-5e32-4f94-8eb2-5714fae1fd21-1791780091 (include this in support requests).”,  
“extensions”: {  
“requestId”: “e233f154-5e32-4f94-8eb2-5714fae1fd21-1791780091”,  
“code”: “INTERNAL\_SERVER\_ERROR”  
}  
}  
],  
“data”: null  
}

Thanks.

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [October 12, 2026, 1:32pm UTC](https://community.shopify.dev/t/admin-graphql-inventorytransfersetitems-returns-internal-server-error-when-re-sending-same-payload-with-idempotency-key/38546/2 "2026-10-12T13:32:49Z")

</div>

Hi @Michael_Cheng, thanks for the detailed writeup. Replaying the exact same payload with the same idempotency key should return the cached successful response without reprocessing, so the `INTERNAL_SERVER_ERROR` you’re hitting isn’t expected behavior. I’ve raised this with the relevant team for a closer look.

While that’s in progress, treat your first successful call as the source of truth. Check the transfer state directly rather than assuming anything about the replayed request. You can page through the transfer’s line items with an `inventoryTransfer` query and compare the item IDs and quantities against what you intended to set:

```graphql
query TransferLineItems($id: ID!, $after: String) {
  inventoryTransfer(id: $id) {
    id
    status
    lineItemsCount { count }
    lineItems(first: 250, after: $after) {
      nodes { id inventoryItem { id } totalQuantity }
      pageInfo { hasNextPage endCursor }
    }
  }
}

```

The [idempotency guide](https://shopify.dev/docs/apps/build/apis/graphql-admin/implementing-idempotency) is clear that a fresh key is for genuinely new operations, not for retrying one with an uncertain result, and I can’t confirm from here that the failed replay changed nothing. Verify the transfer contents before deciding on next steps. The mutation’s requirements are in the [inventoryTransferSetItems reference](https://shopify.dev/docs/api/admin-graphql/2026-10/mutations/inventoryTransferSetItems).

I’ll follow up in this thread once I hear back from the team, thanks for posting!

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [October 19, 2026, 9:01am UTC](https://community.shopify.dev/t/admin-graphql-inventorytransfersetitems-returns-internal-server-error-when-re-sending-same-payload-with-idempotency-key/38546/4 "2026-10-19T09:01:18Z")

</div>

Thanks for your patience on this, @Michael_Cheng. The team confirmed that replaying a successful request with the same idempotency key is expected to return the cached response without reprocessing, and the `INTERNAL_SERVER_ERROR` you hit is an issue on our side. It’s tracked for a fix, though I don’t have a timeline to share.

I also had the team check your transfer. The failed replay didn’t change it, so your first successful `inventoryTransferSetItems` call is the source of truth and nothing needs repairing. Your line items should match what you sent in that request.

While the fix is out, retrying the same key can keep returning the error until the cached response expires, which typically happens within about 24 hours. If you hit that error after a known-successful call, re-fetch the transfer to verify its state rather than replaying or retrying with a fresh key, which would bypass the idempotency guarantee.

Let me know if the transfer contents look anything other than what you expect.
