Custom fulfillment service locations not showing in GraphQL but appear in REST API

Hi there,

I need some help with this issue.

I’m currently migrating from the REST Admin API to the GraphQL Admin API, and I’ve noticed a difference in how fulfillment service locations are returned.

In my store, I have third-party fulfillment services (e.g., Red Stag Fulfillment, ShipBob Fulfillment).

When I use the REST API, I can retrieve all locations — including fulfillment service locations — successfully:

GET /admin/api/2023-10/locations.json

However, when I query the GraphQL Admin API, I only see Shopify-managed locations.
The custom/third-party fulfillment service locations do not appear.

Here’s the GraphQL query I’m using:

{
  locations(first: 50) {
    edges {
      node {
        id
        name
        address {
          address1
          city
          province
          country
          zip
        }
      }
    }
  }
}

This only returns Shopify locations and seems to filter out fulfillment service locations automatically.

Question:

Is this the expected behavior for the GraphQL API?
If so, is there any way to include or query third-party fulfillment service locations (like those returned by the REST API)?

Thanks in advance for your help! :folded_hands:

1 Like

Hey @Sekar,

You can use the shop.fulfillmentServices query to return a list of all of the fulfillment services on your shop, and then request the location object from that service.