How do i query woocommerce booking post type on init action?

If You have this posts in database You can pass custom query to $wpdb
and get all data that You need. But first:

  1. check if data is in database
  2. write query that works ( i test that in SQL PRO interface )
  3. do not hardcode prefix in query
  4. use correct hook (init is ok)

than build csv file.

Hope it works.