Shopify Webhook
How To Use The Triggers
Â
Follow the below visual guide for using the triggers, learn more about our Shopify integration here.
Â
After adding the details and mapping the variable, attach the trigger to a subflow as:
Â
Â
Â
Â
We are now ready to use the triggers.
Triggers & Response Payloads
Cart Abandoned
Cart Abandoned is triggered from shopify whenever any customer enter their billing details but does not continue to payment page or does not complete the payment.
Â
The response payload returns information regarding cart items, amount , checkout page url etc.
Â
The response payload return the following JSON.
Â
{ |
Â
Note : The minimum time limit before the cart abandoned webhook triggered is 30 minutes by default
Order Creation (Cash On Delivery & Credit Card)
Â
This webhook is triggered whenever someone completes the checkout process and places an order. The only difference between the two triggers is that when using Cash on Delivery, the order is by default marked unpaid and when using credit card, the order is by default marked as paid.
Â
The response payload returns the following JSON
Â
{ |
Order Cancelled
Â
This webhook is triggered whenever the order is cancelled from the shopify admin console.
The response payload returns the following JSON.
{ |
Order Paid
Â
This webhook is triggered whenever the order is marked from the shopify admin console.
Â
The response payload returns the following JSON.
Â
{ |
Order Fulfilled
This webhook is triggered whenever the order is fulfilled from the shopify admin console. It return information such as order details and shipping tracking from merchants etc.
Â
The response payload returns the following JSON.
Â
{ |
Â
Draft Order Creation
The webhook is triggered whenever a draft order is created either via an API call through the bot or from Shopify admin console directly.
Â
An important note here is that the trigger uses the personal information provided by Shopify upon creation of draft order to match the bot user inside UChat. If the provided with the payload is incorrect or doesnt exist the payload is simply wasted without the trigger being fired.
Â
Following response payload is received whenever the trigger is successfully fired.
{ |
User Creation With Triggers
Â
The webhook identifies the users using phone number and email address and then matching it from the existing bot users already present. If the bot users are not found then phone number is used to create the user. If phone number is returned null, then email is used to create the user. When users are created using phone numbers, they are created under whatsapp channel by default, and when users are created using email, they are created under web channel.