add_action('woocommerce_thankyou', 'update_order_in_thirdparty', 10, 1);
function update_order_in_thirdparty($order_id)
{
if (!$order_id)
return;
$order = wc_get_order( $order_id );
$user = $order->get_user();
if( $user ){
// do something with the user
}
}