All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi everyone,
Is it possible to know if this order has a single fulfillment location or multiple?
We would like to send a custom review request. But when an order is just partially delivered and we ask if they liked a product, we get a negative review. We could simply add a delay. but still not sure if they get a product.
Yes, it is possible to determine if an order has multiple fulfillment locations in Shopify by analyzing the fulfillment information. Here's how you can proceed:
Check the Fulfillment Data: From your second screenshot, the order object contains a fulfillments field. Each fulfillment object corresponds to a shipment. If there are multiple fulfillment entries, the order was fulfilled from multiple locations or in multiple shipments.
Identify Fulfillment Status:
Analyze Locations: In the order API, each fulfillment object contains a location_id. If the location_id differs across fulfillments, the order was fulfilled from multiple locations.
To send a review request only when all items have been delivered:
If tracking fulfillment is challenging: