Create Woocommerce order action

This action lets you create a Woocommerce order via the WooCommerce integration. Use it to automate you daily work and save time and resources.

How to create a Woocommerce order

This section aims to help you getting started on how to create a Woocommerce order via WooCommerce. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Create Woocommerce order" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Create Woocommerce order action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
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 )

Connection examples

Get inspired on how to use the "Create Woocommerce order" action within our WooCommerce integrations. Down below you will find various examples with our other integrations.
When a group access was granted via The LearnDash Logo for our WP Webhooks integration LearnDash, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When an order was deleted via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a free membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a profile photo was changed via The Ultimate Member Logo for our WP Webhooks integration Ultimate Member, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a coupon was updated via The Woocommerce Logo for our integration WooCommerce, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a course access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a user was registered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a mockup comment was deleted via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a comment was trashed via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a user password was changed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a mockup comment was created via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a donation failed via The GiveWP Logo for our WP Webhooks integration GiveWP, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a Automate.io webhook request was received via The Automate.io Logo for our WP Webhooks integration Automate.io, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When an email was sent via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a plugin was deactivated via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a user was logged out via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a form was submitted via The HappyForms Logo for our WP Webhooks integration HappyForms, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a lesson was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a taxonomy term was deleted via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a contact was added to a list via The FluentCRM Logo for our WP Webhooks integration FluentCRM, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When an entry was approved via The GravityKit Logo for our WP Webhooks integration GravityKit, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.

More available WooCommerce endpoints

Discover more of the available endpoints used for the WooCommerce integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.