Integrating the Foxy Webhook with Make/Integromat

This article will help you send the Foxy JSON Webhook to Make (was Integromat), so you can trigger scenarios when events happen in Foxy like transactions being completed or subscriptions being cancelled.

Add the webhook to Make

  1. In Make, create a new scenario and add the “Webhooks” module
  2. Select the “Custom Webhook” trigger
  3. Click “Add” for the “Webhook” selector and enter a name (like “Foxy Transaction Webhook”) and “Save” it
  4. With your new webhook selected in the dropdown, copy the webhook URL that Make provides below the dropdown to your clipboard

    The Webhooks module panel in Integromat
  5. In the Foxy administration, go to the “Integrations” section
  6. If it’s not already enabled, check the checkbox for the “JSON Webhook” option in the “Webhooks Next” section
  7. Add a new webhook in this section, giving it a name (like “Make”), and paste in the URL you copied from Make. Check the checkbox for the resource that you want to be sent to Make for this scenario

    Setting the JSON webhook URL within the Foxy administration
  8. For the "API filter query string", enter a value of zoom=applied_taxes,billing_addresses,custom_fields,customer,discounts,items,items:item_category,items:item_options,payments,shipments,items:gift_card_codes
  9. Click the “Update Webhooks Next” button
  10. We now need to feed a transaction to the webhook so it can be read by Make. Complete a transaction (test or live) on your store. This will send the data over to your Make webhook. (If you ever need to do that again in the future, you can go to the “transactions” section of the Foxy administration and expand a transaction. Under the “Webhooks” section of the transaction, check the box for your Make webhook and click the “Refeed selected webhooks” button.)
  11. Go back to Make, and you should see that Webhooks module has updated to show that it’s received the data. You can now add additional modules to your scenario to use the data from the webhook.

Create scenarios

Now that you've got the JSON Webhook connected, you can use them to perform other actions in your Make scenarios.

Some notes for working with the webhooks:

  • The JSON webhook for created transactions will include a couple different arrays of information - for example the items in the cart, or the options on items. If you want to perform actions for each item in the cart, you will need to use the Iterator module.
  • It's also possible to connect Make to the Foxy API, so you could, for example, add attributes to transactions as they complete. It's a little more technical to get connected, and we'll be working on developing a native integration to make it easier. In the meantime, if you're interested, contact us for details on connecting the API.