Skip to main content

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.

Hi @ZGUK 

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

 

 


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  


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"


@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