# Inventory\_transfer between warehouses

**URL:** <https://community.shiphero.com/t/inventory-transfer-between-warehouses/2428>\
**Category:** GraphQL API\
**Created:** [April 10, 2023, 3:26pm UTC](https://community.shiphero.com/t/inventory-transfer-between-warehouses/2428 "2023-04-10T15:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliblock](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eliblock](https://community.shiphero.com/u/eliblock)\
**Post date:** [April 10, 2023, 3:26pm UTC](https://community.shiphero.com/t/inventory-transfer-between-warehouses/2428/1 "2023-04-10T15:26:04Z")

</div>

Hi,

Shiphero newbie here! Does the API allow transferring between warehouses like in the app at [https://app.shiphero.com/dashboard/warehouses/createTransfer](https://app.shiphero.com/dashboard/warehouses/createTransfer). Seems inventory\_transfer is for locations within a warehouse?

---

<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:** [April 10, 2023, 3:44pm UTC](https://community.shiphero.com/t/inventory-transfer-between-warehouses/2428/2 "2023-04-10T15:44:31Z")

</div>

Hey @eliblock,

Thanks for reaching out and Welcome to our Developer Community!

I believe using the `inventory_subtract` and `inventory_add` mutations could accomplish this.

An example of this process would go something like this:

```auto
mutation {
  inventory_subtract(
    data: { sku: "test1", warehouse_id: "wh_1", quantity: 20 reason:"transferring to warehouse2"}
  ) {
    request_id
    complexity
    warehouse_product {
      id
      legacy_id
      account_id
      sku
      warehouse_id
      on_hand
    }
  }
}

```

Then the inventory\_add:

```auto

mutation {
  inventory_add(data: { sku: "test1", warehouse_id: "wh_2", quantity: 20 reason:"transferred from warehouse1"}) {
    request_id
    complexity
    warehouse_product {
      id
      legacy_id
      account_id
      sku
      warehouse_id
      warehouse_identifier
      on_hand
    }
  }
}

```

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

Best,  
RayanP
