Action: Create Woocommerce order

Create a Woocommerce order on your website using webhooks.
On this page you will find further information about the Create Woocommerce order action and how to use it via WP Webhooks, as well as via other external services such as Integromat, Pabbly, Integrately, or Zapier.
The Create Woocommerce order action is part of our Woocommerce integration.

Webhook setup guide

This section aims to help you getting started with the Create Woocommerce order action.
Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

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.

Connection examples

Get inspired on how to use the Woocommerce action. Down below you will find various examples with our other integrations.
When a new affiliate signed up via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a customer was created via The Woocommerce Logo for our integration Woocommerce, 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 contact was removed from 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 a comment was deleted via The WordPress Logo for our integration WordPress, 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 an assignment was uploaded via The LearnDash Logo for our WP Webhooks integration LearnDash, 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.
When a group 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 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 new referral was received via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a topic 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 order was updated 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 an order was created 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 custom trigger was called via PHP via The WordPress Logo for our integration WordPress, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a product was deleted via The Woocommerce Logo for our integration Woocommerce, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a purchase was completed via The WP Simple Pay Logo for our WP Webhooks integration WP Simple Pay, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a product was created via The Woocommerce Logo for our integration Woocommerce, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When a form was submitted via The WPForms Logo for our integration WPForms, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.
When an order was deleted via The Woocommerce Logo for our integration Woocommerce, create a Woocommerce order via The Woocommerce Logo for our integration Woocommerce.

More available endpoints

Down below you will find a list of all available triggers and actions for the Woocommerce integration.
If you want 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.