Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi, I'm attempting to get a parcel's "sender" address using an order fulfillment hook. Would this be the origin_address in the fulfillment array? If so, why is it returning empty? I found there is also a location_id field, but that is just the id for a location. I would prefer if I could use one webhook for all my needs.
Much Appreciated
Hi Itsarrow,
Yes, you are correct. The "sender" address in the context of a fulfillment would typically be represented by the origin_address
field in the fulfillment array. This field should contain the address from where the fulfillment has been done, usually a warehouse or fulfillment center.
However, if it's returning empty, there could be a few possible explanations:
origin_address
field might be empty if the fulfillment was made from a location that does not have a specified address.read_orders
or read_marketplace_orders
access scopes.Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey Liam,
I appreciate the help so far.
The obstacle persists. My observations so far:
I am facing the same issue , response coming from fulfillment creation hook returning origin_location as null but while fetching all fulfillments with rest api getting origin_location in line items array in all fullfillments of an order.
Is it possible that i will receive origin_location in webhook as well.
Checked All scopes working fine
Bump on this, really frustrating that the test webhook contains no origin location data. Even when trying to manually trigger it nothing seems to be there, could be an issue around shipping labels not being present, but I'm not going to build my app whilst constantly placing real orders to test. Shopify seem to have missed a step here.