Create Woocommerce order action

This action lets you create a Woocommerce order via the WooCommerce integration. Use it to automate you daily work ans 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 coupon was deleted via The Woocommerce Logo for our integration WooCommerce, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
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 a Make (Integromat) HTTP request was received via The Make (Integromat) Logo for our WP Webhooks integration Make (Integromat), create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a membership was set to pending cancellation via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a form was submitted via The Kadence Blocks Logo for our WP Webhooks integration Kadence Blocks, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When an order was updated via The Woocommerce Logo for our integration WooCommerce, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a user was deleted via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a booking was added via The Amelia Logo for our WP Webhooks integration Amelia, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a comment was created via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a tag was removed from a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a cover photo was removed 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 topic was unfavored via The bbPress Logo for our WP Webhooks integration bbPress, 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 license status was updated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a membership was paused via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a quiz was completed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When an affiliate status was changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a payments status was changed via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a membership expired via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a license was activated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a Woocommerce order via The Woocommerce Logo for our integration WooCommerce.
When a new license was created via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, 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.