Skip to main content
Question

Using a Catch webhook to create a fulfilment within shopify


I am trying to use a Zapier Catch Webhook to take a fulfillment from an order management system, and based on the tracking number and tracking url it sends - update Shopify using a fulfilment request.

I originally tried the Custom Request (BETA) inside the Shopify integration which suggests it doesn’t have permissions to make the request;

Failed to create a http request in Shopify

Raw request failed. The api_client does not have the required permission(s). Please reconnect your Shopify account to Zapier and try again.

I then tried via a custom Zapier webhook to POST what is required to make a valid call to the Shopify API, but authenticating manually - but this just comes up with a 406 error.

Any advice on how to fix? Luckily - the Catch webhook is working, so i’m part way there.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @ZGUK 

Help articles for using Shopify that may provide guidance: https://zapier.com/apps/shopify/help

 

 


fiona819
Forum|alt.badge.img+3
  • New
  • 111 replies
  • May 31, 2024

Hi @ZGUK Which api are you calling on shopify side? The fulfillments are quite complicated so make sure it is just not an authentication issue. 

the structure is Order > Fulfillment Order > Fulfillments

The tracking update is usually on the fulfillments level in which you need the fulfillment ID to do that  


  • Author
  • New
  • 1 reply
  • May 31, 2024
fiona819 wrote:

Hi @ZGUK Which api are you calling on shopify side? The fulfillments are quite complicated so make sure it is just not an authentication issue. 

the structure is Order > Fulfillment Order > Fulfillments

The tracking update is usually on the fulfillments level in which you need the fulfillment ID to do that  

 

Using the curl as an example here from the Shopify docs - this is the call we are making and getting the 406 error.

 

/admin/api/2023-07/fulfillments.json

{"fulfillment":{"line_items_by_fulfillment_order":[{"fulfillment_order_id":1046000799}],"tracking_info":{"number":"MS1562678","url":"https://www.my-shipping-company.com?tracking_number=MS1562678"}}}

-X POST "https://your-development-store.myshopify.com/admin/api/2023-07/fulfillments.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Content-Type: application/json"


fiona819
Forum|alt.badge.img+3
  • New
  • 111 replies
  • June 1, 2024

@ZGUK Did you double check your permissions and authentication, as well as the fulfillment order ID? 

Can you paste the screenshot of how you are doing the webhook in Zapier? Want to make sure that all the syntax looks right