Our off-Shopify site is configured to handle fulfillment requests from a Shopify storefront. When the site is notified of a fulfillment request, the data is immediately available. However, when a fulfillment request for cancellation is submitted, the data is not available via REST for several seconds after the notification is received by our site.
-
Shopify admin requests cancellation of fulfillment
-
Site receives notification via callback_url/fulfillment_order_notification
-
Site polls Shopify REST end point
/admin/api/2022-10/assigned_fulfillment_orders.json?assignment_status=cancellation_requested
4. Site receives empty JSON array
"content" : "{\"fulfillment_orders\":[]}",
-
Make 2nd request immediately, and receive same response.
-
Wait 10 seconds and repeat the same request, and then get back the order with the cancellation request
{
"fulfillment_orders": [
{
"id": XXXXXXX,
"shop_id": YYYYYYYY,
"order_id": ZZZZZZ,
I can’t find a note anywhere in the documentation that says that the data won’t be immediately available, so I’m looking for some guidance about whether this is an issue with Shopify’s REST API, or if the documentation is incomplete, or if we need to delay our polling of the site.