Webhook

Webhook offers an easy way of sending event based data about abandoned carts to applications like Make (former Integromat), Pabbly, Zapier or other. It is a great way for building powerful automations and advanced marketing processes. Please follow this guide to learn about CartBounty webhook and see examples on how to connect it with applications that support webhooks.

1. Webhook basics

Simply speaking, webhook works like a bridge between two applications helping to deliver messages using a unique webhook URL. Webhook was introduced in CartBounty 9.9 and it can push various abandoned cart events to third-party services. CartBounty includes the following webhook triggers:

  • New abandoned cart
  • Abandoned cart updated
  • Abandoned cart turned into order
  • Abandoned cart deleted

Abandoned cart data is sent in JSON format. If multiple abandoned cart items must be sent, they will be sent as an array combined into a single message to save server resources and maximize website speed. All webhook messages use POST method except abandoned cart deletion which uses DELETE method. If you require to change these methods, please use our filters.

2. Send abandoned carts to Make

Make (former Integromat) is an awesome 🤩 automation platform. Besides the huge number of apps that can be connected using Make, it is also one of the easiest to start with. Very user friendly design and clear automation creation process. Please follow this guide to start sending abandoned cart data from CartBounty to Make.

  1. Sign in to Make
  2. Navigate to Data stores
  3. Choose to add a new Data store and provide a name for the storage (this is where all abandoned carts will be stored)
  4. Create data structure by defining columns you would like to have in your abandoned cart table
Data structure example for storing abandoned carts in Make
Data structure example for storing abandoned carts in Make
  1. Navigate to Scenarios and create a new scenario
  2. Start by adding a new Webhook module
  3. Choose Custom webhook option
  4. Create an New hook
Custom webhook URL inside Make
Custom webhook URL
  1. Copy generated webhook URL to clipboard
  2. Go to your WordPress dashboard > WooCommerce > CartBounty Pro
  3. Open Recovery > Webhook
  4. Paste webhook URL
  5. Use the “Save settings” button
  6. Test webhook using “Add cart” button
CartBounty connected with Make using webhook URL
CartBounty connected with Make using webhook URL
  1. Switch back to Make scenario
  2. Run scenario and choose to Process existing message
  3. You should be able to see a notice next to webhook module containing information about previously sent abandoned cart test data. If test data is not there, please try sending test data from CartBounty again
Abandoned cart test data sent from CartBounty to Make webhook
Abandoned cart test data sent from CartBounty to Make webhook
  1. Continue building scenario by adding a new Router module
  2. Create two routes
  3. Click on the first route and setup a filter
  4. Name this filter as “Add / Update cart” so that later it is easier to distinguish between both routes
  5. Setup two conditions for this route – continue going forward this route if cart status equals “abandoned” or “ordered”
"Add / Update cart" route conditions for abandoned or ordered carts
“Add / Update cart” route conditions for abandoned or ordered carts
  1. Now add a new Data store module at the end of first route
  2. Select “Add / Replace a record” from provided Data store options
  3. Select Data store option from the list that was created in an earlier step
  4. Set “id” as the key which will serve as a unique identifier and will be important when updating abandoned cart
  5. Choose to overwrite an existing record (this is used to update abandoned cart data in case it is turned into a new order or cart data has been updated)
  6. Map all fields with appropriate values from the abandoned cart test data and save the changes
"Add / Replace a record" module setup example with mapped data
“Add / Replace a record” module setup example with mapped data
  1. First route is done, now we can continue with the second one which will handle abandoned cart deletion
  2. Click on the second route and setup a filter
  3. Name this filter as “Delete cart”
  4. Setup one conditions for this route – continue going forward this route if cart status equals “deleted”
"Delete cart" route conditions for deleted carts
“Delete cart” route conditions for deleted carts
  1. Now add a new Data store module at the end of second route
  2. Select “Delete a record” from provided Data store options
  3. Select Data store option from the list that was created in an earlier step
  4. Set “id” as the key which will be used to identify the cart that should be deleted
"Delete a record" module setup example
“Delete a record” module setup example
  1. Save your scenario
  2. Start running your scenario and try testing all routes by sending test abandoned cart data from CartBounty to check if your Data storage displays abandoned cart updates
Finished Make scenario for sending abandoned cart data from CartBounty to Make
Finished Make scenario for sending abandoned cart data from CartBounty to Make

These are the basic steps required to get abandoned carts from your WooCommerce store using CartBounty webhook into Make. From here your options are endless – you can create a new automation which uses abandoned cart data stored inside Data store to send reminder messages (SMS, Email, WhatsApp), add customers to your CRM, send custom stats about abandonment to Google Analytics etc.

3. Send abandoned carts to Pabbly

Pabbly supports more than 1000+ applications for creating powerful automations and seamless real-time data transfers at a competitive price. It provides an intuitive workflow building process as well as simple and user friendly interface. Please follow this guide to start sending abandoned cart data from CartBounty to Pabbly and store them inside a Google sheet.

  1. Sign in to Pabbly
  2. Open Pabbly Connect
  3. Start by creating a new workflow
  4. Provide a name for this workflow e.g. “Abandoned carts”
  5. Choose Webhook as the starting trigger
  6. Disable “Simple Response”
  7. Copy generated webhook URL to clipboard
Custom Pabbly webhook URL
Custom Pabbly webhook URL
  1. Go to your WordPress dashboard > WooCommerce > CartBounty Pro
  2. Open Recovery > Webhook
  3. Paste webhook URL
  4. Use the “Save settings” button
  5. Test webhook using “Add cart” button
CartBounty connected with Pabbly using webhook
CartBounty connected with Pabbly using webhook
  1. Sign in to Google Drive
  2. Now it is time to setup spreadsheet for storing abandoned carts that will be sent to Pabbly. Create a new spreadsheet
  3. Use first row of the new sheet to create column headers for data you would like to store
  4. Save your spreadsheet
Google spreadsheet with column headers for storing abandoned carts
Google spreadsheet with column headers for storing abandoned carts
  1. Switch back to Pabbly workflow
  2. Continue building automation workflow by adding a new Iterator action. This will make sure whenever CartBounty sends multiple abandoned cart items in one message, they will all get properly handled
  3. Select “Response[]” in the Choose Array field
  4. Click on the “Save and test request” button. You should be able to see previously sent abandoned cart test data. If test data is not there, please try sending test data from CartBounty again
Abandoned cart test data inside Pabbly iterator
Abandoned cart test data inside Pabbly iterator
  1. Continue building automation workflow by adding a new Router action
  2. Add additional route so you would have a total of 3 routes inside Router element
  3. Rename your first route to “Add new cart”
  4. Click on the “Set Filter & Action Steps” button of “Add new cart” route
  5. Setup condition for this route – continue if cart status equals “abandoned” and last synced value is “0000-00-00 00:00:00”
Filter conditions for the "Add new cart" route inside Pabbly
Filter conditions for the “Add new cart” route inside Pabbly
  1. Save filter
  2. Continue building “Add new cart” route by adding a new Google Sheets action step
  3. Set action event to “Add New Row”
  4. Connect Google sheets account and authorize application
  5. Select Google spreadsheet that was created earlier in Google Drive
  6. Map all fields with appropriate values from the abandoned cart test data and save the changes. First route is complete – you can close it
Google Sheets "Add New Row" action step setup
Google Sheets “Add New Row” action step setup
  1. Rename the second route of Router element to “Update cart”
  2. Click on the “Set Filter & Action Steps” button of “Update cart” route
  3. Setup two conditions for this route – continue if cart status equals “abandoned” and last synced value is not “0000-00-00 00:00:00” or if cart status equals “ordered”
Filter conditions for the "Update cart" route inside Pabbly
Filter conditions for the “Update cart” route inside Pabbly
  1. Save filter
  2. Continue building “Update cart” route by adding a new Google Sheets action step
  3. Set action event to “Lookup Spreadsheet Rows”
  4. Connect Google sheets account and authorize application
  5. Select Google spreadsheet that was created earlier in Google Drive
  6. In the Lookup Column enter “A” (Pabbly will search in the first column where abandoned cart ID values are stored)
  7. Choose Lookup value from abandoned cart test data – “Id”
  8. Click on the “Save and test request” button. You should be able to see that one abandoned cart has been found with additional information fields displayed. If you get a result that no row was found, please make sure your Google sheet spreadsheet has abandoned cart test row saved inside it
Finding abandoned cart rows inside Google sheet of "Update cart" route
Finding abandoned cart rows inside Google sheet of “Update cart” route
  1. Save current action step
  2. Continue building “Update cart” route by adding a new Google Sheets action step
  3. Set action event to “Update row”
  4. Connect Google sheets account and authorize application
  5. Select Google spreadsheet that was created earlier in Google Drive
  6. Choose Row Index value returned from the previous Lookup step – “RowIndex”
  7. Map remaining fields with appropriate values from the abandoned cart test data
  8. Save current action step. Second route is complete – you can close it
Final action step of the "Update cart" route using Google sheets update row event
Final action step of the “Update cart” route using Google sheets update row event
  1. Rename the third and last route of Router element to “Delete cart”
  2. Click on the “Set Filter & Action Steps” button of “Delete cart” route
  3. Setup condition for this route – continue if cart status equals “deleted”
  4. Save filter
  5. Continue building “Delete cart” route by adding a new Google Sheets action step
  6. Set action event to “Lookup Spreadsheet Rows”
  7. Connect Google sheets account and authorize application
  8. Select Google spreadsheet that was created earlier in Google Drive
  9. In the Lookup Column enter “A”
  10. Choose Lookup value from abandoned cart test data – “Id”
  11. Click on the “Save and test request” button. You should be able to see that one abandoned cart has been found with additional information fields displayed. If you get a result that no row was found, please make sure your Google sheet spreadsheet has abandoned cart test row saved inside it
  12. Save current action step
  13. Continue building “Delete cart” route by adding a new Number Formatter action step
  14. Set action event to “Perform Math Operation”
  15. In the Numbers field choose “RowIndex” returned from previous Lookup step. Then add a comma followed by number “1” (this is Pabbly syntax of dealing with numbers)
  16. Choose Operation field as “Subtract”
  17. Click on the “Save and test request” button
Number Formatter action step setup inside "Delete cart" route
Number Formatter action step setup inside “Delete cart” route
  1. Continue building “Delete cart” route by adding a new Google Sheets action step
  2. Set action event to “Delete Row”
  3. Connect Google sheets account and authorize application
  4. Select Google spreadsheet that was created earlier in Google Drive
  5. In the Start Row Number field choose “Result” from previous Number Formatter step
  6. In the End Row Number field choose “RowIndex” returned from Lookup step
Final action step of the "Delete cart" route using Google sheets delete row event
Final action step of the “Delete cart” route using Google sheets delete row event
  1. Save current action step. Third and last route is complete – you can close it
  2. Try testing all routes by sending test abandoned cart data from CartBounty and check if Google sheets spreadsheet displays abandoned cart rows and updates
Finished automation workflow for sending abandoned carts from CartBounty to Pabbly via webhook
Finished automation workflow for sending abandoned carts from CartBounty to Pabbly via webhook

This wraps up all of the basic steps necessary to get abandoned carts from CartBounty into Pabbly using webhook URL. From here you can create a new automation workflow that takes abandoned carts from Google spreadsheet and sends abandoned cart reminder messages etc.

4. Enable coupons

CartBounty allows to include both static and one-time generated discount codes inside recovery emails to sway users into completing their orders. To enable coupons, please start by configuring coupon code inside CartBounty and then it will be automatically included in abandoned cart data sent to webhook.

  1. Go to your WordPress dashboard > WooCommerce > CartBounty Pro
  2. Open Recovery > Webhook
  3. Choose to generate a unique coupon code for each abandoned cart user or select an existing coupon code from the list that will be sent to eligible abandoned carts
  4. Setup Usage restrictions if necessary
  5. Use the “Save settings” button

Abandoned cart users who are not eligible for the coupon code will not receive it. If a user clicks the abandoned cart recovery link, the coupon code will be automatically applied.

5. Exclusions

Exclusions block allows an easy way to exclude carts from abandoned cart recovery containing specific products or product categories. If any of the excluded products or product categories is found inside the cart, CartBounty will automatically exclude this cart from recovery.

Abandoned cart exclusions
Abandoned cart exclusions

What’s next

You have learned how to use CartBounty webhook and transfer abandoned cart data to external systems that support it. You might also be interested in the following topics:

Last updated 8 months ago

What our amazing customers are saying.

Don’t just take it from us - take a look at what our awesome customers are saying about our product and support.

Support

Need premium support for CartBounty Pro?

Please use the button below, reply to your purchase receipt or contact us with e-mail including your license key. This will guarantee a faster response time.

Get Premium support
CartBounty
You were not leaving your cart just like that, right?

Don't Go Just Yet! Claim Your 5% Discount Now! 🥳

Simply provide your email and unlock an instant discount applied to your shopping cart.