public function create_customer( $data ) {
        try {
            if ( ! isset( $data['customer'] ) ) {
                throw new WC_API_Exception( 'woocommerce_api_missing_customer_data', sprintf( __( 'No %1$s data specified to create %1$s', 'woocommerce' ), 'customer' ), 400 );
            }