FulfillmentEvents: Shopify fulfillment query sometimes returns empty events

wesleyabbey
Tourist
4 0 2

I'm trying to get events for some fulfillments. Right now I can see events for Fedex fulfillments but not DHL fulfillments. I'm not entirely sure if the main issue is carrier yet though.

Query is below

 

 

    query fulfillment($id: ID!) {
      fulfillment(id: $id) {
        displayStatus
        createdAt
        deliveredAt
        status
        trackingInfo {
          company
          number
          url
        }
        events(first: 2, sortKey: HAPPENED_AT, reverse: true) {
          edges {
            node {
              status
              happenedAt
              id
            }
          }
        }
      }
    }

 

 

Everything else looks like its coming back fine.

One common thread is the `displayStatus` looks like it's always `FULFILLED` when I'm missing events. I'm not exactly sure what this means. This is not always true as some DHL orders are in transit with this status.

I'm also missing events for some Fedex orders but those don't look like they've started transit yet.

 

I can't find too much documentation on fulfillment_events so its a little difficult to tell whats going wrong.

Reply 1 (1)
_JB
Shopify Staff
Shopify Staff
836 100 219

Hey @wesleyabbey,

Fulfillment events should come in automatically for Fedex, and I believe they should be automatic for DHL as well. If you can provide the order_ids that you're not seeing updated tracking info for, I'll check our logs to see why that's the case.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog