# "warehouse\_id" Shipment Request Parameters Queries

**URL:** <https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718>\
**Category:** GraphQL API\
**Created:** [September 1, 2020, 11:59am UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718 "2020-09-01T11:59:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 1, 2020, 11:59am UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/1 "2020-09-01T11:59:10Z")

</div>

Hi I am trying to understand the Create Shipment request, but I have got a couple of questions

[https://developer.shiphero.com/order-fulfillment/](https://developer.shiphero.com/order-fulfillment/)

1). Are the **warehouse\_id** and the **dimensions** info which I have marked are of the same line item for which I want to create shipment?

2). If the answer is **Yes** , then it means we can create one line item shipment/request? Is that correct because this request support for multiple line items but in that case which **warehouse\_id** we will be using since each line item can have its own **warehouse\_id**

Please let me know if it is not cleared

Thanks in Advance 🙂

 ![1](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/845fcd9fc8ed67f76c8fb895609721fb6f5e2dd0.png) ![2|690x432]

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 1, 2020, 1:16pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/2 "2020-09-01T13:16:07Z")

</div>

Hi @khungersumit!  
It is not exactly for the line item, but for the shipment itself.  
The line items you specify in there are the ones that will be included in the shipment.

The dimensions are for the package itself, the package that will have that specific label

Then, each shipment is meant to be made from one warehouse only, you could create different shipments for different warehouses, but each shipment must have a specific warehouse.

Let me know if that doesn’t respond to the question or maybe I could explain better.  
Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 1, 2020, 1:27pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/3 "2020-09-01T13:27:44Z")

</div>

Hi @tomasw

Suppose we have created an order and it has not shipments yet,  
and Now I want to create shipment then which **wareouse\_id** would I be using, I mean to say we get warehouse\_id in each line items,

Let’s say I have 2 line items  
Line Item A =\> warehouse “A\_warehouse\_id”  
Line Item B =\> warehouse “B\_warehouse\_id”

To create Shipment for multiple line items which **warehouse\_id** should I use and for dimensions(The dimensions are for the package itself, the package that will have that specific label)

not getting this clearly, confused here  
Please help here  
Thanks

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 1, 2020, 1:32pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/4 "2020-09-01T13:32:55Z")

</div>

no problem at all @khungersumit!  
In that case, you would need to create two different shipments with two different packages and two different labels, something like this:

Line Item A =\> warehouse “A\_warehouse\_id” =\> A\_Shipment =\> A\_Label & A\_Dimensions  
Line Item B =\> warehouse “B\_warehouse\_id” =\> B\_Shipment =\> B\_Label & B\_Dimensions

And as for those warehouse\_id’s will be the ones you specify

Let me know if I could explain better  
Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 1, 2020, 1:51pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/5 "2020-09-01T13:51:33Z")

</div>

Yes Exactly this was my approach, but  
Just for curiosity If we take the first case,  
Creating shipment of multiple line items in single request, In that case which **warehouse\_id** and dimensions info will you be using 🤔

Suppose we have 2 line items  
Line Item A =\> A\_WAREHOUSE\_ID =\> dimesniosnA {length=1, heigh=1…etc}  
Line Item B =\> B\_WAREHOUSE\_ID =\> dimesniosnB {length=2, heigh=2…etc}

Assume this order is fresh new order with no shipments.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 1, 2020, 2:42pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/6 "2020-09-01T14:42:54Z")

</div>

Perfect!  
In that case it will take the same warehouse\_id, label & dimensions for both as a whole  
It will be something like: a shipment for a Box containing the two line items, the box would have the dimensions and label specified

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 1, 2020, 2:45pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/7 "2020-09-01T14:45:50Z")

</div>

@tomasw

Ok but same warehouse\_id, label & dimensions for both as a whole, means what, sorry didn’t get this.

“a shipment for a Box containing the two line items, the box would have the dimensions and label specified”

Ok, I agree, but for this BOX containing 2 line items, you must have to specify a warehouse\_id correct?  
so which warehouse\_id would you be taking for the BOX

Sorry If I am asking many quetsions 🙂

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 1, 2020, 3:13pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/8 "2020-09-01T15:13:51Z")

</div>

No worries!!  
That is correct, it will take the warehouse\_id for the Box, the one specified in the screenshot above  
That warehouse\_id will be for the shipment and all of its components (line items, label)

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 2, 2020, 5:41am UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/9 "2020-09-02T05:41:03Z")

</div>

@tomasw  
I agree with all your points.

My question is where to get this **warehouse\_id** which you are saying “it will take the **warehouse\_id** for the Box, the one specified in the screenshot”

If I want to ship multiple line items then which and where to get the warehouse\_id for the whole shipment 🙂

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 2, 2020, 12:39pm UTC](https://community.shiphero.com/t/warehouse-id-shipment-request-parameters-queries/718/10 "2020-09-02T12:39:46Z")

</div>

Oh I apologize for that!  
You can see the `warehouse_id` by using the account query, something like this:

```
query {
  account {
    request_id
    complexity
    data {
      id
      legacy_id
      email
      username
      warehouses {
        id
        legacy_id
        account_id
        identifier
        profile
      }
    }
  }
}

```

That should list all of the warehouses available for your account.  
Thanks again!  
Tom
