Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Some webhooks are not getting called on development store

Solved

Some webhooks are not getting called on development store

kibosam
New Member
4 0 0

Hi

 

I am listening to couple of webhooks from shopify on my server. I can get webhook call from shopify on new order, new cart or new checkout. Now, I want to get webhook events on status of orders i.e. order is confirmed, order is packed, order is in transit etc. I am listening to these webhook topics for order status but I am not receiving any webhook call:

 

orders/cancelled
orders/fulfilled
orders/paid
orders/updated

 

None of these topics are receiving any webhook call from shopify. However, I can receive webhook when new order is created.

 

My store is a development webstore, and my app is unlisted for now. I am not sure if this is the reason.

 

I am using cash on delivery method. I want to do something like, updating order status in admin side and receive the status of order in my server.

 

I am adding webhooks topics and listening to them programmatically through nodejs library.

 

Please let me know if anybody knows how to solve these.

Accepted Solution (1)
Busfox
Shopify Staff (Retired)
628 49 110

This is an accepted solution.

Hi again @kibosam,

 

I checked our logs for the order cancel webhook for that order and can see a 404 response is being returned. Is the url you are receiving the webhook at set up to accept POST requests?

 

As for your second question, you would need to use the Fulfillment API to set the shipment_status, or use an existing app/fulfillment service that is doing this.

 

Cheers,

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 7 (7)

Busfox
Shopify Staff (Retired)
628 49 110

Hi @kibosam,

 

I'm not aware of any limitations to these webhooks when it comes to Dev stores. Can you share a recent order id with me where these webhooks should have been triggered but were not? I can take a look in our logs and see what's up.

 

Thanks!

To learn more visit the Shopify Help Center or the Community Blog.

kibosam
New Member
4 0 0

Hi @Busfox 

 

Thanks for replying. Here is the order id: 1032632860735

 

I did the cancellation of order but did not  receive the webhook event for order cancellation. I am listening to the cancel topic. I subscribed to it during installing the app on web store through API calls.

 

I successfully received events such as, creation of cart, checkout and order. 

 

Also, besides this, I want to understand how I can update the different order status in shop admin dashboard i.e. order confirmed, order in transit, order picked up, order delivered. There was no way to setup these status for an order. I am not using any courier or shipping provider and want to do from store so that I can get order status in my server through webhook.

 

Please guide in this regards as well.

 

Thank you again.

Busfox
Shopify Staff (Retired)
628 49 110

This is an accepted solution.

Hi again @kibosam,

 

I checked our logs for the order cancel webhook for that order and can see a 404 response is being returned. Is the url you are receiving the webhook at set up to accept POST requests?

 

As for your second question, you would need to use the Fulfillment API to set the shipment_status, or use an existing app/fulfillment service that is doing this.

 

Cheers,

To learn more visit the Shopify Help Center or the Community Blog.

kibosam
New Member
4 0 0

Hi @Busfox 

 

Thanks for replying.

 

I was able to confirm that instead of POST requests, I was accepting GET requests on these webhooks. I have corrected them and now I am able to listen to events successfully.

 

One more question, for Fulfillment Webhook, which of these both topics should I listen to? What is meant by creation of fulfillment?

 

fulfillments/create, fulfillments/update

 

Also, if I setup any carrier using add tracking button on my orders, will they automatically send updates to my server using fulfillment webhooks?

 

Thank you so much. I am understanding it now.

 

Regards,

Busfox
Shopify Staff (Retired)
628 49 110

Hi @kibosam,

 

Glad your webhooks are now working fine!

 

To answer your additional questions, if you want to know about new fulfillments being created then you would listen to fulfillments/create, if you want to know about any update to a fulfillment then you would listen to fulfillments/update. Since a fulfillment is associated with an order, if you want to know of any updates to an order it may make sense to subscribe to both of these.

 

For your second question, if a fulfillment is created with a tracking number, then the fulfillments/create webhook will be triggered. If an existing fulfillment is updated to include a tracking number, then a fulfillments/update webhook will be triggered.

 

I'd highly recommend doing some testing yourself in order to determine the behaviour of these webhooks and fulfillments, as it will greatly benefit your understanding of these workflows.

 

Cheers,

To learn more visit the Shopify Help Center or the Community Blog.

kibosam
New Member
4 0 0

Thanks. Great explanation.

 

Yes, I am experimenting more and more. I was curious about how couriers tracking ids work with order status updates because on development store, I could not add any real tracking id.

 

I have started learning more about fulfillments from this https://www.shopify.com/encyclopedia/fulfillment. Kindly share with me if you have any other good resources to learn these workflows.

 

Thank you.

 

Regards,

Busfox
Shopify Staff (Retired)
628 49 110

Hi again @kibosam,

 

The order status page will update if the order includes a tracking number from a support carrier. There are some details you can read about this feature here.

To learn more visit the Shopify Help Center or the Community Blog.