Connect HappyForms to Woocommerce
Triggers and actions
Get started
Requirements
For those integrations to work properly, it is required to have the following plugins/services in place:
Documentation
For your convenience, we prepared you various links that help you getting started with using WP Webhooks.
Learn more
HappyForms
HappyForms is a WordPress plugin allowing users to create custom forms for their websites. The plugin includes a drag-and-drop form builder, customizable design options, and integration with popular email marketing and CRM tools. It is suitable for many use cases, including contact forms, registration forms, surveys, and polls. HappyForms is a user-friendly and flexible solution for creating custom forms on WordPress websites.
Woocommerce
WooCommerce is an open-source e-commerce plugin for WordPress. It is designed for small to large-sized online merchants using WordPress. While WooCommerce webhooks are, by default, limited, WP Webhooks aims to fill that gap.
Form submitted
This webhook fires as soon as a form is submitted within HappyForms.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected forms
Select only the forms you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Add coupon emails
Add one or multiple emails to a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_id
Set this argument to the id of the coupon.
- emails
Add the emails you want to add to the user. This argument accepts a comma-separated string, as well as a JSON construct.
- replace
Set this to yes to replace the existing emails. If set to no, the emails are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Order created
This webhook fires as soon as an order was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Add coupon user IDs
Add one or multiple emails via user IDs to a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_id
Set this argument to the id of the coupon.
- user_ids
Add the user_ids you want to add to the user. This argument accepts a comma-separated string, as well as a JSON construct.
- replace
Set this to yes to replace the existing user_ids. If set to no, the user_ids are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon created
This webhook fires as soon as a coupon was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Create Woocommerce order
Create a Woocommerce order on your website using webhooks.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- billing_address
The billing address of the order. Please see the description for more information.
- shipping_address
The shipping address of the order. Please see the description for more information.
- shipping_lines
This argument allows you to add certain shipping lines to your order. Please see the description for further details.
- add_products
The slist with the product ids and the quantity. More information within the description.
- calculate_totals
Set it to "yes" in case you want to calculate the order total. Default "no".
- payment_complete
Set it to "yes" in case you want to set the payment to complete. You can also set a transation id instead of "yes".
- legacy_set_total
Set the legacy total amount and type. More information within the description.
- order_meta
You can also set custom order meta. This meta will be saved as custom values within the post meta table. More information within the description.
- order_status
The order status you want to use for the order. Please check the description for more information.
- customer_id
The id or the email of the customer for the order.
- customer_note
Some text that will be displayed as the customer note.
- order_parent
The id of a parent order.
- created_via
In identifier where the order was created from. E.g. "wp-webhooks".
- cart_hash
A cart hash value.
- order_id
A custom order id (Please note that this value may NOT be the order id of the order you currently create).
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon deleted
This webhook fires as soon as a coupon was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Create coupon
Create a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_code
The code that your customers can use during checkout.
- type
The coupon type.
- amount
The discount amount of the coupon code, based on the selected type.
- individual_use
Set this to yes if the coupon cannot be used in conjunction with other coupons. Default: no
- product_ids
Add IDs of products in case you want to apply the coupon code only to specific products. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_product_ids
Add IDs of products that you want to exclude from the coupon code. This argument accepts a comma-separated string, as well as a JSON construct.
- usage_limit
Set a number if you want to limit the coupon to be used a limited amount of times only. Default: 0 (unlimited)
- usage_limit_per_user
Set a number to define whether a user can use the coupon code multiple times. Default: 0 (unlimited)
- limit_usage_to_x_items
Define a maximum number of products this coupon can be applied to for each cart. Default: 0 (unlimited)
- usage_count
A number that shows how often the code has been already used.
- expiry_date
A date when the coupon code expires. Leave empty to never expire it.
- enable_free_shipping
Set this to yes to enable free shipping. Default: no
- product_category_ids
Add the category IDs you want to add to the coupon. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_product_category_ids
Add the category IDs you want to exclude to the coupon. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_sale_items
Set this to yes to prevent the coupon being applied to items on sale. Default: no
- minimum_amount
Set a minimum amount that need to be reached before the coupon can be applied.
- maximum_amount
Set a maximum amount of which the coupon can be applied to.
- coupon_emails
Add one or multiple emails to the coupon. Only the users with those emails can redeem the code. This argument accepts a comma-separated string, as well as a JSON construct.
- description
Add a coupon author. This field accepts a user id.
- replace
Set this to yes to replace the existing user_ids. If set to no, the user_ids are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon restored
This webhook fires as soon as a coupon was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Woocommerce API call
The full power of the woocommerce API, packed within a webhook.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- consumer_key
Your API consumer key. Please see the description for more information.
- consumer_secret
Your API consumer secret. Please see the description for more information.
- api_base
The action you want to use. E.g. products/1234 - Please see the description for more information.
- api_method
The method of the api call. E.g. get - Please see the description for more information.
- api_data
Additional data you want to send to the api call. Please see the description for more information.
- api_options
Extra arguments. Please see the description for more information.
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon updated
This webhook fires as soon as a coupon was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Customer created
This webhook fires as soon as a customer was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Customer deleted
This webhook fires as soon as a customer was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Customer updated
This webhook fires as soon as a customer was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Order deleted
This webhook fires as soon as an order was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Order restored
This webhook fires as soon as an order was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Order updated
This webhook fires as soon as an order was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Product added to cart
This webhook fires as soon as a product was added to the cart within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
Product created
This webhook fires as soon as a product was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Product deleted
This webhook fires as soon as a product was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Product restored
This webhook fires as soon as a product was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Product review approved
This webhook fires as soon as a product has been approved within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
Product updated
This webhook fires as soon as a product was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Product viewed
This webhook fires as soon as a product was viewed within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
User password updated
This webhook fires after a user password is updated within a WooCommerce account page.