SmartConnect can leverage WooCommerce webhooks to create event driven real-time integrations. The WooCommerce connector comes with some predefined examples, but additional webhooks can be added as needed.
If you’d like to watch a video explaining this, see below or click here.
1. Create Data Source
- Navigate to Data Sources > Realtime Triggers
- Click Create Realtime Trigger
- Select WooCommerce Webhook
- Description – Friendly description for the data source
- Connection – WooCommerce connection to monitor
- Webhook – The desired webhook listener
- Run As – User impersonated on map run
- Log Action – Which integration run events to log to the Realtime Process Logs table
- Use the Select Fields button to add any required fields
- Click Validate and Save
- Copy the generated Callback url for use in step 3

2. Register Data Source
The real-time data source needs to be linked to an integration before it can be used.
- Navigate to Processes > Integration Processes
- + Create Integration
- Provide an integration id and description, switch to the Source tab
- Source Type – Real-Time Event
- Source – WooCommerce
- Data source – Your previously created data source
- Group By – Select at least 1 key field

- Finish mapping at least one field to the target
- Save the integration
- Click Register
- Enable the Trigger on the linked integration
- Click Validate and Save

3. Configure Webhook in WooCommerce
Now that SmartConnect is listening for events from WooCommerce, we need to configure WooCommerce to send the messages to our data source.
- Log into the WordPress Admin
- Go to WooCommerce > Settings > Advanced > Webhooks
- Name: Enter a friendly name for the webhook
- Status: Active
- Topic: Select the webhook event add the listener
- Delivery URL: Paste in the URL generated in Step 1
- Click the Save webhook button

4. Testing a Webhook
After the webhook is registered, we can test a webhook notification and ensure it processes the whole way through to run the integration.
- Trigger a webhook by causing a tracked event such as updating a record
- Open WooCommerce > Status > Logs
- Filter for webhooks-delivery
- Ensure your webhook fired to the correct URL and received a 200 status code

- Log into SmartConnect > Dashboard
- Verify the integration executed

- If the integration didn’t automatically run, check the following locations for errors
- Process History >
- Realtime Staging
- Realtime Process Logs
- System Events
- Process History >