# \`allocation\_reference\` (Webhooks, Orders)

**URL:** <https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637>\
**Category:** GraphQL API\
**Created:** [October 5, 2023, 3:11am UTC](https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637 "2023-10-05T03:11:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kokua](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kokua](https://community.shiphero.com/u/kokua)\
**Post date:** [October 5, 2023, 3:11am UTC](https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637/1 "2023-10-05T03:11:56Z")

</div>

Hello 😸

It appears on the “Order Allocated” and “Order Deallocated” webhooks pass allocation\_reference as an integer, of what looks to be a legacy\_id.

However, when querying allocations {} on a given Order, the allocation\_reference is a string, that looks like a node\_id.

The field is called allocation\_reference in both instances.

Is there any way to match the two? I would suggest passing both the legacy\_id and node\_id in both instances.

Thanks!

---

<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:** [October 5, 2023, 1:05pm UTC](https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637/2 "2023-10-05T13:05:07Z")

</div>

Hey @kokua,

Thanks for reaching out!

I see what you mean; the webhook sends the value as the legacy\_id, and the query returns the value encoded. They should both be the same ID, just that one is decoded and one isn’t. I will go ahead and pass along this feedback to the team.

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

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![kokua](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kokua](https://community.shiphero.com/u/kokua)\
**Post date:** [October 5, 2023, 8:39pm UTC](https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637/4 "2023-10-05T20:39:27Z")

</div>

Thanks @sh-agent! Is there any way for us to encode/decode ourselves?

---

<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:** [October 6, 2023, 12:05pm UTC](https://community.shiphero.com/t/allocation-reference-webhooks-orders/2637/5 "2023-10-06T12:05:46Z")

</div>

Hey @kokua,

Since the value is encoded in base64, you should be able to decode with any decoders you’re able to find online.

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

Best,  
RayanP
