Get pickup store informations with the API

Hello,

We use the Shopify Shipping system for local store pickup delivery but use a third-party company for managing shipments and creating labels. This company gets the Order object via the API to get the shipping information. The problem is that when the delivery option to local store pickup is chosen by the customer, we do not receive essentials informations in the Order object, such as the ID of the selected pickup store and its type. Instead, what we get in the Order object is the pickup store’s details (address, city, etc.) as the shipping address and no longer the final address of the customer.

I can’t find a way to get the data related to the pickup store selected by the customer for their order using the Shopify API (especially using GraphQL).

The Shopify customer service apparently can’t help me with these API issues and has advised me to consult a Shopify Partner, but we may not have the possibility to do so.

Could someone enlighten me on this matter?

Hi @Luigi_Vampa ,

The deliveryMethod and assignedLocation are both fields on the fulfillmentOrder object attached to the Order.

We have a migration guide that outlines how to use the fulfillmentOrder object, but if you need you need to check which store was selected by the customer with just an order ID could use a query like this:

query pickupLocation($order: ID!){
  order(id:$order){
    id
    displayFulfillmentStatus
    fulfillmentOrders(first:3){
      nodes{
        id
        deliveryMethod{
          id
          methodType
        }
        assignedLocation{
        name
        }
      }
    }
  }
}

Hope that helps!

  • James

Thank you for your answer, indeed I have been able to find this object before.

The thing is, if I look for “methodType”, I receive an error message : "

“Internal error. Looks like something went wrong on our end.\nRequest ID: 96e57ea1-cad8-4fcc-9ece-a8529e959af1 (include this in support requests”

Also, what I need is not only the name/address of the pickup point but its type and ID (and by type and ID I don’t mean Shopify’s generated id and type, but the real one outside of Shopify, I start to think that Shopify don’t have this informations at all or don’t provide it through the API…)

Hey @Luigi_Vampa , thanks for sharing that error response!

Just looking in to this here, I noticed you mentioned this is a pickup point.

Taking a look at our documentation here the following requirement is mentioned:

To use pickup points, your store needs to have an eligible fulfillment location and use eligible Shopify Shipping carriers.

What this means is that they don’t currently work with 3rd party fulfillment services, which is the likely reason for the error being returned as pickup points is not a listed delivery method type.

As for the additional ID’s, if it’s not a Shopify generated ID or type, then it’s likely not retrievable via the API unless it’s stored as custom data (metafield or attributes).

For the time being, removing methodType from your query will help so you don’t get the error. Our developers are aware of this issue as well.

Hope this helps provide the additional clarity needed!

Again, thanks a lot for your answers.

If I understand well, using Shopify Shipping to provide users the possibility to use pickup points will provide through the API only the address and name of the chosen pickup point (this is what I get when trying) but no more informations about the pickup points ? Plus, this address and name show up in the shipping_adress object for me.

Hey @Luigi_Vampa ,

It looks like you’re understanding this correctly. The shipping address of the pickup point would be expected as that’s where it needs to be shipped.