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.
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_marketplace_orders access scopes.
Hope this helps!
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