Inventory_transfer between warehouses

Hi,

Shiphero newbie here! Does the API allow transferring between warehouses like in the app at https://app.shiphero.com/dashboard/warehouses/createTransfer. Seems inventory_transfer is for locations within a warehouse?

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:

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:


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