# Shipment Update triggers for other 3PL shipments

**URL:** <https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337>\
**Category:** GraphQL API\
**Created:** [May 26, 2021, 6:21pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337 "2021-05-26T18:21:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![afroznissar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/afroznissar/32/277_2.png) [@afroznissar](https://community.shiphero.com/u/afroznissar)\
**Post date:** [May 26, 2021, 6:21pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/1 "2021-05-26T18:21:29Z")

</div>

Hi,

We have the Shipment Update webhook set up. We’ve been testing it for the last few days and noticed an issue.

Background: we’re a 3PL. Once of our clients uses us and another 3PL that’s also on Shiphero. So the other 3PL fulfills some orders while we fulfill others.

We noticed today that the Shipment Update webhook gets triggered when shipments are made by the other 3PL as well. That sounds like bad design as we only need the shipments our 3PL makes. I’m guessing this happens because we are forced to register the webhook on the customer account rather than our 3PL account.

Since we’re unable to use register the webhook on our 3PL account, how can we distinguish between our shipments and the other 3PL’s shipments on the Shipment Update trigger?

---

<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:** [May 27, 2021, 4:27pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/2 "2021-05-27T16:27:32Z")

</div>

Hi @afroznissar!  
I see what you mean, it is not common to have the same customers with two 3PLs, so that is why it was probably not a concern in the past.

You could use the `warehouse_id` that is being sent on the Webhook to distinguish which 3PL is shipping the order.  
Let me know if that still doesn’t help!  
Thanks,  
Tom

---

<div class="post-metadata">

**Author:** ![afroznissar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/afroznissar/32/277_2.png) [@afroznissar](https://community.shiphero.com/u/afroznissar)\
**Post date:** [May 31, 2021, 9:03pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/3 "2021-05-31T21:03:52Z")

</div>

Hi @tomasw ,

Ok, thanks, we’ll try that.

Here’s a related issue though - the Shipment Update webhook gets triggered for:

1. Dropship Only products, and
2. Orders that are fulfilled from elsewhere (not in Shiphero). For example, the client account might ship an order from their EU warehouse instead of us. Doing so updates the order in Shiphero to fulfilled but we didn’t ship it so no shipment is created. But the webhook still gets triggered.

In both these situations, no actual shipments are created in Shiphero. So why does the Shipment Update webhook get triggered? How do we stop this from happening? The webhook shouldn’t be sending over any shipments/orders for which shipment records are not created. Or am I misunderstanding something?

Thanks,  
Afroz

---

<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:** [June 3, 2021, 12:56am UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/4 "2021-06-03T00:56:14Z")

</div>

Hi @afroznissar!  
That is correct it will trigger for those as well, not only “outbound” shipments but other shipments as well like drop shipments and shipments created outside of ShipHero.  
Maybe you are looking for a shipping label? those ones won’t appear if its a drop shipment, and for shipments created outside of ShipHero there should be a field on the shipments query called `shipped_off_shiphero` that should reflect that value

Let us know if that still doesn’t help,  
Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![afroznissar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/afroznissar/32/277_2.png) [@afroznissar](https://community.shiphero.com/u/afroznissar)\
**Post date:** [June 9, 2021, 6:46pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/5 "2021-06-09T18:46:42Z")

</div>

Hi @tomasw ,

How do I get a shipping label from the data I receive from the Shipment Update webhook?

Thanks!

---

<div class="post-metadata">

**Author:** ![afroznissar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/afroznissar/32/277_2.png) [@afroznissar](https://community.shiphero.com/u/afroznissar)\
**Post date:** [June 21, 2021, 5:59pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/6 "2021-06-21T17:59:28Z")

</div>

Hi @tomasw ,

Following up here. What I need to do is determine definitively if a shipment has been shipped outside of Shiphero or not.

1. You mentioned shipping labels. How do I get that from the data that we receive from the Shipment Update webhook? I don’t see anything in the graphql documentation for shipping labels.
2. We’re not seeing the “shipped\_off\_shiphero” field on the shipments query. Where can we find that?

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:** [June 22, 2021, 1:02pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/7 "2021-06-22T13:02:06Z")

</div>

Hi @afroznissar !

> [@afroznissar](#):
>
> How do I get a shipping label from the data I receive from the Shipment Update webhook?

You can use this shipment query:

```auto
query {
  shipment(id: "the_shipment_id_from_the_webhook") {
    request_id
    complexity
    data {
      id
      shipped_off_shiphero
      shipping_labels {
        label {
          pdf_location
        }
      }
    }
  }
}

```

That one will also return you if it was shipped outside of ShipHero:true

Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![afroznissar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/afroznissar/32/277_2.png) [@afroznissar](https://community.shiphero.com/u/afroznissar)\
**Post date:** [June 22, 2021, 6:20pm UTC](https://community.shiphero.com/t/shipment-update-triggers-for-other-3pl-shipments/1337/8 "2021-06-22T18:20:44Z")

</div>

Got it, thanks Tomas!
