I need to trigger a hook when creating an order via REST-API using WooCommerce.
The hooks I have tried are as follows, but none of them work.
save_post_shop_order woocommerce_api_create_order woocommerce_new_order woocommerce_thankyou woocommerce_rest_prepare_shop_order_object
rest_insert_shop_order
Use this hook.Triggered after creating or updating a single post via REST API.