Solved

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

TJ_Biddle
Excursionist
38 1 17

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
Excursionist
38 1 17

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
Excursionist
38 1 17

Bump

TJ_Biddle
Excursionist
38 1 17

It appears that fulfillments/create is what I wanted.

TJ_Biddle
Excursionist
38 1 17

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.)