Difference between Webhook "checkout/create", "orders/create"

Solved

Difference between Webhook "checkout/create", "orders/create"

Tripo
Tourist
4 0 1

Hi guys,

 

I am developing sending special feedback form to the customer via API. It needs to have some special features so I am developing it on my own and also as a part of my exercise. Is anyone able to describe me difference between events "checkout/create" and "orders/create"? I am looking for an event which fires ideally after customer finishes checkout. I think that one of these should do the job. I've got everything prepared, I am just thinking to which event add the webhook.

 

Cheers,

Andrej

Accepted Solution (1)

KarlOffenberger
Shopify Partner
1873 184 902

This is an accepted solution.

A checkout/create event is fired when a checkout is initiated. That means that a user proceeds from their cart to checkout and the cart line items are "transferred" to the checkout line items. As the user enters data throughout the stages of checkout, personal details, shipping, shipping address, payment method, billing address etc. the checkout/update fires.

 

The orders/create event is fired once the checkout is completed i.e. the user successfully completes all checkout steps and is presented with the checkout order summary screen. However, this event is also fired when you manually create an order in Admin UI or if you mark a draft order as paid i.e. the draft order progresses to become an actual order.

 

Hope this helps and hope I wasn't off on any of the steps off the top of my head.

View solution in original post

Replies 3 (3)

KarlOffenberger
Shopify Partner
1873 184 902

This is an accepted solution.

A checkout/create event is fired when a checkout is initiated. That means that a user proceeds from their cart to checkout and the cart line items are "transferred" to the checkout line items. As the user enters data throughout the stages of checkout, personal details, shipping, shipping address, payment method, billing address etc. the checkout/update fires.

 

The orders/create event is fired once the checkout is completed i.e. the user successfully completes all checkout steps and is presented with the checkout order summary screen. However, this event is also fired when you manually create an order in Admin UI or if you mark a draft order as paid i.e. the draft order progresses to become an actual order.

 

Hope this helps and hope I wasn't off on any of the steps off the top of my head.

Tripo
Tourist
4 0 1

@KarlOffenberger Thank you very much. This is exactly I needed to know.

justinc474
Tourist
3 0 6

@KarlOffenberger do you know if this happens every time someone starts a checkout, or only when the checkout object is initially created? Couple scenarios:

 

1. User initiates checkout, goes back to the site, adds another item to their cart, goes back to the checkout flow.

2. User initiates checkout, goes back to the site, clicks around, doesn't add anything, and then goes back into the checkout flow.

3.. User initiates checkout, but doesn't complete. We send them an abandon cart email, and they click the link back into the checkout flow.

 

In these scenarios, is checkout/create fired once or twice?

 

Thanks for your help!