Skip to main content

Hi,

I’ve been playing with this today and can’t get the final stage of my steps (fulfilment) to work.

 

Basically I am trying to automate Shopify fulfilment for an order (or part of an order) when a supplier emails me a shipping report PDF each day.

 

The steps I have are as follows:

 

 

Everything seems to work OK except for step 5, Create Fulfilment, where I get the following error:

 

 

This is the configuration:

 

 

At first I thought it was because the order was already fulfilled in Shopify (as it was sent out yesterday and I am using this order to test). But I have cancelled the fulfilment on that order in Shopify and still get the same error.

Am I using the wrong field for Fulfilment Order ID?

I then need to work out how to only fulfil the items on the shipping notification email, hopefully the filter I have created does that.

This is my first “play” with Zapier so I appreciate the help and patience!

Thanks,
Greg
 

@GregDallamore 

Again I think it is some confusion over language. Try adding your location or the location ID.

 


Leave the line item blank if there is more than one.

Let me know if that helps.


​Hi ​@GregDallamore 

TIP: Click field labels to see tooltips with more info about expected values, formats, limits.


@GregDallamore 

 


Thanks for the replies ​@Badger & ​@Troy Tessalone 

I’ve been using the label tips as best I can but got stuck, hence reaching out here. I’ll always search these things first and only give up after a few hours of searching the forum / asking Chat GTP etc!

@Badger - sorry I can’t find location or location ID in the Shopify fields, is that literally what they are called?

When I click this field, I cannot select any static options, only the custom ones. Does that point to some sort of connection error (which Zapier seems to think there is, but it’s returning other data from Shopify so this doesn’t make sense to me)?

Thanks for the help again, I appreciate it’s frustrating!
 

 


@GregDallamore 

 

I see what you mean it’s not in the New Paid order data. When I click on the box it pops up with the location and works.

However, there is a workaround where you can get the locations ID via an API request

https://{your-store-name}.myshopify.com/admin/api/2023-10/locations.json

Replace with your store name and the all the locations available are listed in the response. 

With the Order ID (ID) you can also use it to grab the fulfillment ID for an order

https://{your-store-name}.myshopify.com/admin/api/2023-10/orders/{order_id}/fulfillment_orders.json

Replace your store name and add the order ID. 

I know in python I could create the url string dynamically each time you may be able to do it with a formatter. This would then give you a fulfillment ID for each purchase. If you’ve only one location you can just type it into the step. 

The main thing I learnt is if and order has been fulfilled or archived then the response will be negative and fail. It may need some error handling to cope. You only get one opportunity to fulfill and cancelling it does not reset the API.  The location also needs to be active, but there wasn’t much on what that meant. 

 

I hope this helps


 

Hi ​@Badger 

Thanks for taking the tine to respond.

I couldn’t get the API link thing to work, it asks for my username and password and doesn’t seem to like the ones I use everyday to login!

I’ve read that the ID is located in the location URL in Shopify settings - and this ties in with the dynamic field I can pull out of Shopify in Zapier:

But, as you can see, I get the same error message. Zapier seems to think it’s not connected to Shopify, but that makes no sense as I can pull the data out from Shopify in Zapier. But maybe I am misunderstanding that part too.

Maybe it’s because the order has been previously fulfilled. If so, I will have to wait until tomorrow afternoon for the supplier to send another pdf to test...


@GregDallamore 

Info from the Shopify API about the fulfillment fields and permissions.

https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/fulfillmentCreate

 


Thanks ​@Troy Tessalone - unfortunately I don’t really understand what I am reading there, it’s probably getting a bit too complicated for my tired brain at this stage (it’s been a long year).

 

I’ll have to spend more time getting my head around Zapier as I thought it was “plug and play”.


@GregDallamore 

It looks like your Shopify account isn’t set-up correctly in Zapier. It might be worth reconnecting shopify and Zapier to see if it helps.

Do you have admin rights in Shopify? It occured to me that your user account may require enough privileges to use the API.

 

Although a misconnect between Shopify and Zapier seems more likely to me.


@Badger - that was it. I reconnected the connection and it’s found the locations now in the “fulfilment order id” field.

I didn’t think it could be that as it was retrieving data from Shopify still in other fields - clearly I have much to learn in Zapier!

@Badger ​@Troy Tessalone - thanks both for your help and patience here (I’m sure I will have more questions 😂


Wow! Thank you for confirming that Troy and Badger’s recommendation got the Zap running. This will significantly help our Community members to have as a reference for the same issue.


Reply