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.

What's the most appropriate webhook for when a product is shipped?

Solved

What's the most appropriate webhook for when a product is shipped?

TJ_Biddle
Explorer
39 1 18

What is the most appropriate webhook to use when a product on an order has been fulfilled?

 

I'm looking at the following as candidates, although perhaps I missed one:

  • orders/fulfilled
  • orders/partially_fulfilled
  • fulfillments/create
  • fulfillments/update
  • fulfillment_events/create

What I will be doing:

  1. Listening for a tracking number to be added to a product. 
  2. I will then be creating an insurance contract with my provider and will be using the tracking number

This should work regardless of whether it's a "partial" fulfillment or "full" fulfillment. If a tracking number is added to a product, I need to know.

 

I don't want to be notified about every single update to an order. I don't want to be notified multiple times for the same product. I don't want to only receive notifications if the entire order is fulfilled.

 

Your help is appreciated - thank you!

Accepted Solution (1)
TJ_Biddle
Explorer
39 1 18

This is an accepted solution.

Apparently can't edit my post. Silly.

 

It appears that fulfillments/create is what I wanted.

 

However, be aware to look out for the "status" attribute. I only want to send when the fulfillment is actually complete, which would be a status of "success". I noticed that if we're sending it to a 3PL integration that it will say "pending" when it's just accepted, and eventually will send again (I expect? Unless it sends an update later on ... will see.)

View solution in original post

Replies 3 (3)

TJ_Biddle
Explorer
39 1 18

Bump

TJ_Biddle
Explorer
39 1 18

It appears that fulfillments/create is what I wanted.

TJ_Biddle
Explorer
39 1 18

This is an accepted solution.

Apparently can't edit my post. Silly.

 

It appears that fulfillments/create is what I wanted.

 

However, be aware to look out for the "status" attribute. I only want to send when the fulfillment is actually complete, which would be a status of "success". I noticed that if we're sending it to a 3PL integration that it will say "pending" when it's just accepted, and eventually will send again (I expect? Unless it sends an update later on ... will see.)