2 min read • Updated a month ago
Integrating the Foxy Webhook with Make
This article will help you send the Foxy JSON Webhook to Make (formerly Integromat), so you can trigger scenarios when events happen in Foxy like transactions being completed or subscriptions being cancelled
Add the webhook to Make
1In Make, create a new scenario and add the “Webhooks” module
2Select the “Custom Webhook” trigger
3Click “Add” for the “Webhook” selector and enter a name (like “Foxy Transaction Webhook”) and “Save” it
4With your new webhook selected in the dropdown, copy the webhook URL that Make provides below the dropdown to your clipboard
5In the Foxy administration, go to the “Integrations” section
6If it’s not already enabled, check the checkbox for the “JSON Webhook” option in the “Webhooks” section
7Add 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
8For 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
9Click the “Update Webhooks Next” button
10We 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.)
11Go 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.